Fix psalm #562
Annotations
9 errors and 5 warnings
src/Blog/BlogService.php#L22
InvalidReturnType: The declared return type 'Yiisoft\Data\Paginator\PaginatorInterface<array-key, App\Blog\Post>' for App\Blog\BlogService::getPosts is incorrect, got 'Yiisoft\Data\Paginator\OffsetPaginator<array-key, array<array-key, mixed>|object>'
|
src/Blog/BlogService.php#L28
InvalidReturnStatement: The inferred type 'Yiisoft\Data\Paginator\OffsetPaginator<array-key, array<array-key, mixed>|object>' does not match the declared return type 'Yiisoft\Data\Paginator\PaginatorInterface<array-key, App\Blog\Post>' for App\Blog\BlogService::getPosts
|
src/Blog/PostRepository.php#L26
InvalidReturnType: The declared return type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, App\Blog\Post>' 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#L30
InvalidReturnStatement: The inferred type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, array<array-key, mixed>|object>' does not match the declared return type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, App\Blog\Post>' for App\Blog\PostRepository::findAll
|
src/Blog/PostRepository.php#L31
InvalidArgument: Argument 1 of Yiisoft\Yii\Cycle\Data\Reader\EntityReader::__construct expects Cycle\Database\Query\SelectQuery|Cycle\ORM\Select<object>, but Cycle\ORM\Select<App\Blog\Post>&static provided
|
src/User/UserRepository.php#L30
InvalidReturnType: The declared return type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, App\User\User>' for App\User\UserRepository::findAllOrderByLogin is incorrect, got 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, array<array-key, mixed>|object>'
|
src/User/UserRepository.php#L34
InvalidReturnStatement: The inferred type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, array<array-key, mixed>|object>' does not match the declared return type 'Yiisoft\Yii\Cycle\Data\Reader\EntityReader<array-key, App\User\User>' for App\User\UserRepository::findAllOrderByLogin
|
src/User/UserRepository.php#L34
InvalidArgument: Argument 1 of Yiisoft\Yii\Cycle\Data\Reader\EntityReader::__construct expects Cycle\Database\Query\SelectQuery|Cycle\ORM\Select<object>, but Cycle\ORM\Select<App\User\User> 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