Skip to content

blog-api static analysis #482

blog-api static analysis

blog-api static analysis #482

Triggered via schedule July 31, 2023 00:01
Status Failure
Total duration 41s
Artifacts

blog-api_static.yml

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

Annotations

5 errors and 5 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
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
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 ['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 ['php-version', 'php-version-file', 'extensions', 'ini-file', 'ini-values', 'coverage', 'tools']