Skip to content

WIP: Support version 2.0 of the MongoDB driver #1578

WIP: Support version 2.0 of the MongoDB driver

WIP: Support version 2.0 of the MongoDB driver #1578

Triggered via pull request January 10, 2025 08:24
Status Failure
Total duration 54s
Artifacts 1

static-analysis.yml

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

Annotations

8 errors
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php#L562
Return type (MongoDB\BSON\Int64) of method class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php:561::getId() should be compatible with return type (MongoDB\Driver\CursorId) of method MongoDB\Driver\CursorInterface::getId()
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php#L577
Method class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php:561::setTypeMap() has parameter $typemap with no value type specified in iterable type array.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php#L581
Method class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php:561::toArray() return type has no value type specified in iterable type array.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php#L586
Method class@anonymous/tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php:561::current() return type has no value type specified in iterable type array.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/QueryTest.php#L626
Method Doctrine\ODM\MongoDB\Tests\QueryTest::createCursorMock() return type has no value type specified in iterable type Traversable.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/SchemaManagerTest.php#L1381
Method Doctrine\ODM\MongoDB\Tests\SchemaManagerTest::createIndexIterator() has parameter $indexes with no value type specified in iterable type array.
Static Analysis with PHPStan (8.2): tests/Doctrine/ODM/MongoDB/Tests/SchemaManagerTest.php#L1393
Method Doctrine\ODM\MongoDB\Tests\SchemaManagerTest::createCollectionIterator() has parameter $collections with no value type specified in iterable type array.
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
composer-lock-static-analysis-phpstan
19.2 KB