Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
barhoumi-dev committed Nov 30, 2023
1 parent f9d8085 commit 9a473a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function paginate(int $page = 1): self
$useOutputWalkers = \count($havingDqlParts ?: []) > 0;
$paginator->setUseOutputWalkers($useOutputWalkers);

/** @var \Traversable $iterator */
/** @var \Traversable<int, object> $iterator */
$iterator = $paginator->getIterator();
$this->results = $iterator;
$this->numResults = $paginator->count();
Expand Down
2 changes: 1 addition & 1 deletion tests/Command/AbstractCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function executeCommand(array $arguments, array $inputs = []): Command
// this uses a special testing container that allows you to fetch private services
/** @var Command $command */
$command = static::getContainer()->get($this->getCommandFqcn());
assert(self::$kernel !== null);
\assert(null !== self::$kernel);
$command->setApplication(new Application(self::$kernel));

$commandTester = new CommandTester($command);
Expand Down

0 comments on commit 9a473a4

Please sign in to comment.