Skip to content

Cleanup

Cleanup #958

Triggered via pull request August 4, 2023 08:30
Status Failure
Total duration 1m 40s
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#L243
Parameter #1 $mapping of method Doctrine\ODM\MongoDB\Mapping\ClassMetadata<class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php:232>::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#L263
Parameter #1 $mapping of method Doctrine\ODM\MongoDB\Mapping\ClassMetadata<class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php:252>::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)
UnsupportedPropertyReferenceUsage: tests/Doctrine/ODM/MongoDB/Tests/Events/PreLoadEventArgsTest.php#L20
tests/Doctrine/ODM/MongoDB/Tests/Events/PreLoadEventArgsTest.php:20:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnsupportedPropertyReferenceUsage: tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/MODM43Test.php#L56
tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/MODM43Test.php:56:9: UnsupportedPropertyReferenceUsage: This reference cannot be analyzed by Psalm. (see https://psalm.dev/321)
UnusedBaselineEntry: lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L1
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php:0:0: UnusedBaselineEntry: Baseline for issue "InvalidReturnStatement" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php#L1
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php:0:0: UnusedBaselineEntry: Baseline for issue "InvalidReturnType" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L1
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:0:0: UnusedBaselineEntry: Baseline for issue "RedundantCondition" has 15 extra entries. (see https://psalm.dev/316)
UnusedBaselineEntry: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L1
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:0:0: UnusedBaselineEntry: Baseline for issue "TypeDoesNotContainType" has 1 extra entry. (see https://psalm.dev/316)
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