Repeat closure type in Collection #421
static-analysis.yml
on: pull_request
Matrix: Static Analysis / PHPStan
Matrix: Static Analysis / Psalm
Annotations
4 errors and 8 warnings
ImplementedParamTypeMismatch:
src/Collection.php#L104
src/Collection.php:104:36: ImplementedParamTypeMismatch: Argument 1 of Doctrine\Common\Collections\Collection::filter has wrong type 'Closure(TKey:Doctrine\Common\Collections\Collection as array-key, T:Doctrine\Common\Collections\Collection as mixed):bool', expecting 'Closure(T:Doctrine\Common\Collections\Collection as mixed, TKey:Doctrine\Common\Collections\Collection as array-key):bool' as defined by Doctrine\Common\Collections\ReadableCollection::filter (see https://psalm.dev/199)
|
Static Analysis / Psalm (8.1)
Process completed with exit code 2.
|
Static Analysis / PHPStan (8.1):
src/ArrayCollection.php#L379
Parameter #2 $callback of function array_filter expects (callable(T, TKey): bool)|null, Closure(TKey, T): bool given.
|
Static Analysis / PHPStan (8.1)
Process completed with exit code 1.
|
Static Analysis / Psalm (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis / Psalm (8.1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Static Analysis / Psalm (8.1)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Static Analysis / PHPStan (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis / PHPStan (8.1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Static Analysis / PHPStan (8.1)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Static Analysis / PHPStan (8.1)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Static Analysis / PHPStan (8.1)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|