Skip to content

Use CursorInterface type instead of Cursor #966

Use CursorInterface type instead of Cursor

Use CursorInterface type instead of Cursor #966

Re-run triggered August 9, 2023 22:07
Status Failure
Total duration 1m 37s
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

14 errors and 4 warnings
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): lib/Doctrine/ODM/MongoDB/Aggregation/Aggregation.php#L44
Method Doctrine\ODM\MongoDB\Aggregation\Aggregation::prepareIterator() has parameter $cursor with no value type specified in iterable type MongoDB\Driver\CursorInterface.
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)
Process completed with exit code 1.
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/
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/

Artifacts

Produced during runtime
Name Size
composer.lock Expired
206 KB