Skip to content

blog-api static analysis #458

blog-api static analysis

blog-api static analysis #458

Triggered via schedule July 7, 2023 00:01
Status Failure
Total duration 46s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

blog-api_static.yml

on: schedule
Matrix: mutation
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 4 warnings
PHP 8.1-ubuntu-latest: src/Blog/BlogController.php#L100
InvalidArgument: Argument 1 of App\Blog\PostFormatter::format expects App\Blog\Post, but array<array-key, mixed>|object provided
PHP 8.1-ubuntu-latest: src/Blog/PostRepository.php#L22
InvalidReturnType: The declared return type 'iterable<mixed, object>&Yiisoft\Yii\Cycle\Data\Reader\EntityReader' for App\Blog\PostRepository::findAll is incorrect, got 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, array<array-key, mixed>|object>'
PHP 8.1-ubuntu-latest: src/Blog/PostRepository.php#L24
InvalidReturnStatement: The inferred type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, array<array-key, mixed>|object>' does not match the declared return type 'iterable<mixed, object>&Yiisoft\Yii\Cycle\Data\Reader\EntityReader' for App\Blog\PostRepository::findAll
PHP 8.1-ubuntu-latest: src/User/UserController.php#L77
InvalidArgument: Argument 1 of App\User\UserFormatter::format expects App\User\User, but array<array-key, mixed>|object provided
PHP 8.1-ubuntu-latest
Process completed with exit code 1.
PHP 8.1-ubuntu-latest
Unexpected input(s) 'working-directory', valid inputs are ['path', 'key', 'restore-keys', 'upload-chunk-size', 'enableCrossOsArchive', 'fail-on-cache-miss', 'lookup-only']
PHP 8.1-ubuntu-latest
Unexpected input(s) 'working-directory', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'persist-credentials', 'path', 'clean', 'fetch-depth', 'lfs', 'submodules', 'set-safe-directory']
PHP 8.1-ubuntu-latest
Unexpected input(s) 'working-directory', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'persist-credentials', 'path', 'clean', 'fetch-depth', 'lfs', 'submodules', 'set-safe-directory']
PHP 8.1-ubuntu-latest
Unexpected input(s) 'working-directory', valid inputs are ['php-version', 'php-version-file', 'extensions', 'ini-file', 'ini-values', 'coverage', 'tools']