Skip to content

Replace spl_object_hash with spl_object_id #1636

Replace spl_object_hash with spl_object_id

Replace spl_object_hash with spl_object_id #1636

Triggered via pull request February 28, 2025 22:37
Status Failure
Total duration 49s
Artifacts 1

static-analysis.yml

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

Annotations

10 errors
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php#L162
Method Doctrine\ODM\MongoDB\Persisters\DocumentPersister::getUpserts() should return array<string, object> but returns array<int, object>.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L2548
Cannot unset offset int on array<string, Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface<(int|string), object>>.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L2597
Cannot unset offset int on array<string, Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface<(int|string), object>>.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L2639
Method Doctrine\ODM\MongoDB\UnitOfWork::getScheduledCollections() should return array<int, Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface<(int|string), object>> but returns array<string, Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface<(int|string), object>>.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L2854
Method Doctrine\ODM\MongoDB\UnitOfWork::getIdentityMap() should return array<class-string, array<int, object>> but returns array<class-string, array<string, object>>.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L3113
Parameter #1 $documents of method Doctrine\ODM\MongoDB\UnitOfWork::getClassesForCommitAction() expects array<string, object>, array<int, object> given.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L3118
Parameter #1 $documents of method Doctrine\ODM\MongoDB\UnitOfWork::getClassesForCommitAction() expects array<string, object>, array<int, object> given.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L3123
Parameter #1 $documents of method Doctrine\ODM\MongoDB\UnitOfWork::getClassesForCommitAction() expects array<string, object>, array<int, object> given.
Static Analysis with PHPStan (8.2): lib/Doctrine/ODM/MongoDB/UnitOfWork.php#L3128
Parameter #1 $documents of method Doctrine\ODM\MongoDB\UnitOfWork::getClassesForCommitAction() expects array<string, object>, array<int, object> given.
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.

Artifacts

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