diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 15de6f05dd..2884229b09 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -317,18 +317,6 @@ parameters: - message: "#^Property Ibexa\\\\Bundle\\\\Core\\\\Command\\\\ReindexCommand\\:\\:\\$phpPath \\(string\\) does not accept string\\|null\\.$#" - count: 2 - path: src/bundle/Core/Command/ReindexCommand.php - - - message: "#^Call to an undefined method iterable\\\\&Traversable\\:\\:valid\\(\\)\\.$#" - count: 1 - path: src/bundle/Core/Command/ReindexCommand.php - - - message: "#^Call to an undefined method iterable\\\\&Traversable\\:\\:current\\(\\)\\.$#" - count: 1 - path: src/bundle/Core/Command/ReindexCommand.php - - - message: "#^Call to an undefined method iterable\\\\&Traversable\\:\\:next\\(\\)\\.$#" count: 1 path: src/bundle/Core/Command/ReindexCommand.php - diff --git a/src/bundle/Core/Command/ReindexCommand.php b/src/bundle/Core/Command/ReindexCommand.php index e40f20dbaf..0897b1d655 100644 --- a/src/bundle/Core/Command/ReindexCommand.php +++ b/src/bundle/Core/Command/ReindexCommand.php @@ -12,6 +12,7 @@ use Generator; use Ibexa\Contracts\Core\Persistence\Content\Location\Handler; use Ibexa\Contracts\Core\Repository\ContentService as APIContentService; +use Ibexa\Contracts\Core\Repository\Values\Content\Content; use Ibexa\Contracts\Core\Repository\Values\Content\ContentList; use Ibexa\Contracts\Core\Repository\Values\Content\Query; use Ibexa\Contracts\Core\Repository\Values\Filter\Filter; @@ -83,7 +84,6 @@ public function __construct( $this->isDebug = $isDebug; $this->projectDir = $projectDir; $this->contentService = $contentService; - $this->phpPath = $phpPath; parent::__construct(); } @@ -481,6 +481,7 @@ public function getDeprecatedAliases(): array private function fetchIterationFromContentList(ContentList $contentList, int $iterationCount): Generator { + /** @var \ArrayIterator $contentListIterator */ $contentListIterator = $contentList->getIterator(); while ($contentListIterator->valid()) {