Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
It was changed to array in bde2503 to override incorrect return value from phpstan-nette’s stub.
But with upgrade to PHPStan 2.0 in 07a1009, it is no longer helping – we had to resort to ignoring the error in 9533530.
  • Loading branch information
jtojnar committed Jan 17, 2025
1 parent 7d72a68 commit 71b44f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Multiplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ public function getContainers(): iterable
{
$this->createCopies();

/** @var array<int|string,Container> $containers */
$containers = array_filter($this->getComponents(), fn ($component) => $component instanceof Container);

return $containers;
Expand Down

0 comments on commit 71b44f4

Please sign in to comment.