blog-api static analysis #510
Annotations
5 errors and 5 warnings
src/Blog/BlogController.php#L100
InvalidArgument: Argument 1 of App\Blog\PostFormatter::format expects App\Blog\Post, but array<array-key, mixed>|object provided
|
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>'
|
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
|
src/User/UserController.php#L77
InvalidArgument: Argument 1 of App\User\UserFormatter::format expects App\User\User, but array<array-key, mixed>|object provided
|
|
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/
|
|
|
|
|
The logs for this run have expired and are no longer available.
Loading