Code Quality using Rector #356
Annotations
10 errors and 1 warning
src/SonsOfPHP/Bard/src/Console/Command/MergeCommand.php#L89
src/SonsOfPHP/Bard/src/Console/Command/MergeCommand.php:89:69: UndefinedVariable: Cannot find referenced variable $packageComposerFile (see https://psalm.dev/024)
|
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)
|
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)
|
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/ClassLoader.php#L43
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/ClassLoader.php:43:7: DuplicateClass: Class Composer\Autoload\ClassLoader has already been defined in /home/runner/work/sonsofphp/sonsofphp/vendor/composer/ClassLoader.php (see https://psalm.dev/071)
|
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/InstalledVersions.php#L27
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/InstalledVersions.php:27:7: DuplicateClass: Class Composer\InstalledVersions has already been defined in /home/runner/work/sonsofphp/sonsofphp/tools/psalm/vendor/composer/InstalledVersions.php (see https://psalm.dev/071)
|
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_namespaces.php#L6
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_namespaces.php:6:1: UnusedVariable: $baseDir is never referenced or the value is not used (see https://psalm.dev/077)
|
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_static.php#L76
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_static.php:76:13: InaccessibleProperty: Cannot access private property Composer\Autoload\ClassLoader::$prefixLengthsPsr4 from context Composer\Autoload\ComposerStaticInit2fe45c24865cd37ef253319d68ac5847 (see https://psalm.dev/054)
|
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_static.php#L77
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_static.php:77:13: InaccessibleProperty: Cannot access private property Composer\Autoload\ClassLoader::$prefixDirsPsr4 from context Composer\Autoload\ComposerStaticInit2fe45c24865cd37ef253319d68ac5847 (see https://psalm.dev/054)
|
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_static.php#L78
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/vendor/composer/autoload_static.php:78:13: InaccessibleProperty: Cannot access private property Composer\Autoload\ClassLoader::$classMap from context Composer\Autoload\ComposerStaticInit2fe45c24865cd37ef253319d68ac5847 (see https://psalm.dev/054)
|
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)
|
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/
|
This job failed
Loading