Code Quality using Rector #358
Annotations
10 errors and 1 warning
InvalidArgument:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php#L29
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php:29:47: InvalidArgument: Argument 1 of SonsOfPHP\Bridge\Doctrine\Collections\Pager\ArrayCollectionAdapter::__construct expects Doctrine\Common\Collections\ArrayCollection<array-key, mixed>, but Doctrine\Common\Collections\ArrayCollection<int<0, max>, int> provided (see https://psalm.dev/004)
|
InvalidArgument:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php#L36
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php:36:47: InvalidArgument: Argument 1 of SonsOfPHP\Bridge\Doctrine\Collections\Pager\ArrayCollectionAdapter::__construct expects Doctrine\Common\Collections\ArrayCollection<array-key, mixed>, but Doctrine\Common\Collections\ArrayCollection<int<0, max>, int> provided (see https://psalm.dev/004)
|
PossiblyUnusedProperty:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/AbstractLazyCollection.php#L27
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/AbstractLazyCollection.php:27:31: PossiblyUnusedProperty: Cannot find any references to property Doctrine\Common\Collections\AbstractLazyCollection::$collection (see https://psalm.dev/149)
|
PossiblyUnusedProperty:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/AbstractLazyCollection.php#L29
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/AbstractLazyCollection.php:29:20: PossiblyUnusedProperty: Cannot find any references to property Doctrine\Common\Collections\AbstractLazyCollection::$initialized (see https://psalm.dev/149)
|
PossiblyUnusedMethod:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/AbstractLazyCollection.php#L413
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/AbstractLazyCollection.php:413:33: PossiblyUnusedMethod: Cannot find any calls to method Doctrine\Common\Collections\AbstractLazyCollection::doInitialize (see https://psalm.dev/087)
|
UnusedProperty:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php#L57
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php:57:19: UnusedProperty: Cannot find any references to private property Doctrine\Common\Collections\ArrayCollection::$elements (see https://psalm.dev/150)
|
PossiblyUnusedParam:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php#L64
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php:64:39: PossiblyUnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/134)
|
PossiblyUnusedMethod:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php#L100
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php:100:24: PossiblyUnusedMethod: Cannot find any calls to method Doctrine\Common\Collections\ArrayCollection::createFrom (see https://psalm.dev/087)
|
PossiblyUnusedParam:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php#L100
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/ArrayCollection.php:100:41: PossiblyUnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/134)
|
PossiblyUnusedMethod:
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/Collection.php#L60
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/doctrine/collections/src/Collection.php:60:21: PossiblyUnusedMethod: Cannot find explicit calls to method Doctrine\Common\Collections\Collection::remove (but did find some potential callers) (see https://psalm.dev/087)
|
Psalm (8.1)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|