Skip to content

Commit

Permalink
fixup! Multiplier::validate(): Filter out non-validatable components
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Jan 11, 2025
1 parent 73925a9 commit 07d1426
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 @@ -312,7 +312,6 @@ public function getContainers(): iterable
{
$this->createCopies();

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

Check failure on line 315 in src/Multiplier.php

View workflow job for this annotation

GitHub Actions / Phpstan / Phpstan (8.3)

Parameter #1 $array of function array_filter expects array, Iterator<int|string, Nette\ComponentModel\IComponent> given.

Check failure on line 315 in src/Multiplier.php

View workflow job for this annotation

GitHub Actions / Phpstan / Phpstan (8.3)

Parameter #1 $array of function array_filter expects array, Iterator<int|string, Nette\ComponentModel\IComponent> given.

return $containers;
Expand Down

0 comments on commit 07d1426

Please sign in to comment.