Skip to content

Use CursorInterface type instead of Cursor #970

Use CursorInterface type instead of Cursor

Use CursorInterface type instead of Cursor #970

Re-run triggered September 6, 2023 06:21
Status Failure
Total duration 1m 28s
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
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Aggregation/Aggregation.php#L41
Parameter #1 $cursor of method Doctrine\ODM\MongoDB\Aggregation\Aggregation::prepareIterator() expects Doctrine\ODM\MongoDB\Iterator\Iterator&MongoDB\Driver\CursorInterface, MongoDB\Driver\Cursor given.
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.
InvalidArgument: lib/Doctrine/ODM/MongoDB/Aggregation/Aggregation.php#L41
lib/Doctrine/ODM/MongoDB/Aggregation/Aggregation.php:41:39: InvalidArgument: Argument 1 of Doctrine\ODM\MongoDB\Aggregation\Aggregation::prepareIterator expects Doctrine\ODM\MongoDB\Iterator\Iterator&MongoDB\Driver\CursorInterface, but MongoDB\Driver\Cursor<array<array-key, mixed>|object> provided (see https://psalm.dev/004)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L169
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:169:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L174
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:174:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L183
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:183:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L187
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:187:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L193
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:193:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L197
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:197:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L223
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:223:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'read-only'?: mixed, 'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
InvalidPropertyFetch: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L227
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:227:19: InvalidPropertyFetch: Cannot fetch property on non-object $xmlRoot of type array{'read-only'?: mixed, 'root-class': mixed, ...<array-key, mixed>} (see https://psalm.dev/029)
RedundantCondition: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L246
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:246:21: RedundantCondition: Type SimpleXMLElement for $field->generator-option is always isset (see https://psalm.dev/122)
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
212 KB