Skip to content

[Attribute] Component and Contract #355

[Attribute] Component and Contract

[Attribute] Component and Contract #355

Triggered via pull request July 30, 2024 17:54
Status Failure
Total duration 1m 27s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Psalm
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
UndefinedVariable: src/SonsOfPHP/Bard/src/Console/Command/MergeCommand.php#L87
src/SonsOfPHP/Bard/src/Console/Command/MergeCommand.php:87:69: UndefinedVariable: Cannot find referenced variable $packageComposerFile (see https://psalm.dev/024)
InvalidArgument: src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php#L34
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php:34: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#L44
src/SonsOfPHP/Bridge/Doctrine/Collections/Pager/Tests/ArrayCollectionAdapterTest.php:44: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)
DuplicateClass: 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)
DuplicateClass: 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)
UnusedVariable: 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)
InaccessibleProperty: 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)
InaccessibleProperty: 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)
InaccessibleProperty: 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)
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)
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/