Skip to content

Cleanup

Cleanup #960

Triggered via pull request August 4, 2023 08:48
Status Failure
Total duration 2m 43s
Artifacts 1

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 4 warnings
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L295
Parameter #2 $mapping of method Doctrine\ODM\MongoDB\Mapping\Driver\XmlDriver::addFieldMapping() expects array{type?: string, fieldName?: string, name?: string, strategy?: string, association?: int, id?: bool, isOwningSide?: bool, collectionClass?: class-string, ...}, array<string, non-empty-array<int, string>|bool|string> given.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Proxy/Factory/StaticProxyFactory.php#L98
Method Doctrine\ODM\MongoDB\Proxy\Factory\StaticProxyFactory::createInitializer() should return Closure(ProxyManager\Proxy\GhostObjectInterface<TDocument>&TDocument=, string=, array<string, mixed>=, Closure|null=, array<string, mixed>=): bool but returns Closure(ProxyManager\Proxy\GhostObjectInterface, string, array, mixed, array): true.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php#L244
Parameter #1 $mapping of method Doctrine\ODM\MongoDB\Mapping\ClassMetadata<class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php:233>::mapField() expects array{type?: string, fieldName?: string, name?: string, strategy?: string, association?: int, id?: bool, isOwningSide?: bool, collectionClass?: class-string, ...}, array{fieldName: 'enum', enumType: 'Documents81\\Card'} given.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php#L264
Parameter #1 $mapping of method Doctrine\ODM\MongoDB\Mapping\ClassMetadata<class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php:253>::mapField() expects array{type?: string, fieldName?: string, name?: string, strategy?: string, association?: int, id?: bool, isOwningSide?: bool, collectionClass?: class-string, ...}, array{fieldName: 'enum', enumType: 'Documents81\\SuitNonBacked'} given.
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.
InvalidArgument: lib/Doctrine/ODM/MongoDB/Proxy/Factory/StaticProxyFactory.php#L50
lib/Doctrine/ODM/MongoDB/Proxy/Factory/StaticProxyFactory.php:50:17: InvalidArgument: Argument 2 of ProxyManager\Factory\LazyLoadingGhostFactory::createProxy expects Closure(ProxyManager\Proxy\GhostObjectInterface<object>=, string=, array<string, mixed>=, Closure|null=, array<string, mixed>=):bool, but Closure((T:fn-doctrine\odm\mongodb\proxy\factory\proxyfactory::getproxy as object)&ProxyManager\Proxy\GhostObjectInterface<T:fn-doctrine\odm\mongodb\proxy\factory\proxyfactory::getproxy as object>=, string=, array<string, mixed>=, Closure|null=, array<string, mixed>=):bool provided (see https://psalm.dev/004)
UnsupportedPropertyReferenceUsage: lib/Doctrine/ODM/MongoDB/Query/Expr.php#L1139
lib/Doctrine/ODM/MongoDB/Query/Expr.php:1139:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: lib/Doctrine/ODM/MongoDB/Query/Expr.php#L1398
lib/Doctrine/ODM/MongoDB/Query/Expr.php:1398:13: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: lib/Doctrine/ODM/MongoDB/Query/Expr.php#L1400
lib/Doctrine/ODM/MongoDB/Query/Expr.php:1400:13: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UndefinedConstant: lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php#L28
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php:28:9: UndefinedConstant: Constant Doctrine\Common\Collections\Expr\Comparison::EQ is not defined (see https://psalm.dev/020)
UndefinedConstant: lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php#L29
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php:29:9: UndefinedConstant: Constant Doctrine\Common\Collections\Expr\Comparison::GT is not defined (see https://psalm.dev/020)
UndefinedConstant: lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php#L30
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php:30:9: UndefinedConstant: Constant Doctrine\Common\Collections\Expr\Comparison::GTE is not defined (see https://psalm.dev/020)
UndefinedConstant: lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php#L31
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php:31:9: UndefinedConstant: Constant Doctrine\Common\Collections\Expr\Comparison::IN is not defined (see https://psalm.dev/020)
UndefinedConstant: lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php#L32
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php:32:9: UndefinedConstant: Constant Doctrine\Common\Collections\Expr\Comparison::LT is not defined (see https://psalm.dev/020)
UndefinedConstant: lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php#L33
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php:33:9: UndefinedConstant: Constant Doctrine\Common\Collections\Expr\Comparison::LTE is not defined (see https://psalm.dev/020)
Static Analysis with PHPStan (8.2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, ramsey/composer-install@v1, actions/upload-artifact@v2. 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 with PHPStan (8.2)
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 with 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, actions/upload-artifact@v2. 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 with 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/

Artifacts

Produced during runtime
Name Size
composer.lock Expired
206 KB