Skip to content

Commit

Permalink
Corrected CS
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Dec 19, 2023
1 parent a35e6bf commit cbbd512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 0 additions & 12 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Content\\>\\&Traversable\\:\\:valid\\(\\)\\.$#"
count: 1
path: src/bundle/Core/Command/ReindexCommand.php
-
message: "#^Call to an undefined method iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Content\\>\\&Traversable\\:\\:current\\(\\)\\.$#"
count: 1
path: src/bundle/Core/Command/ReindexCommand.php
-
message: "#^Call to an undefined method iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Content\\>\\&Traversable\\:\\:next\\(\\)\\.$#"
count: 1
path: src/bundle/Core/Command/ReindexCommand.php
-
Expand Down
3 changes: 2 additions & 1 deletion src/bundle/Core/Command/ReindexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -83,7 +84,6 @@ public function __construct(
$this->isDebug = $isDebug;
$this->projectDir = $projectDir;
$this->contentService = $contentService;
$this->phpPath = $phpPath;

parent::__construct();
}
Expand Down Expand Up @@ -481,6 +481,7 @@ public function getDeprecatedAliases(): array

private function fetchIterationFromContentList(ContentList $contentList, int $iterationCount): Generator
{
/** @var \ArrayIterator<int, Content> $contentListIterator */
$contentListIterator = $contentList->getIterator();

while ($contentListIterator->valid()) {
Expand Down

0 comments on commit cbbd512

Please sign in to comment.