Skip to content

Fix some findings from PHPStan level 6 #1373

Fix some findings from PHPStan level 6

Fix some findings from PHPStan level 6 #1373

Triggered via pull request September 3, 2023 14:20
Status Failure
Total duration 2m 5s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

qa.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
PHPStan: src/Tree/Document/MongoDB/Repository/MaterializedPathRepository.php#L76
Method Gedmo\Tree\Document\MongoDB\Repository\MaterializedPathRepository::getRootNodes() should return array<int|string, object> but returns Doctrine\ODM\MongoDB\Iterator\Iterator.
PHPStan: src/Tree/RepositoryUtils.php#L178
Method Gedmo\Tree\RepositoryUtils::buildTreeArray() should return array<int, array<string, mixed>> but returns array<int<0, max>, ArrayAccess>.
PHPStan
Process completed with exit code 1.