We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28455dd commit f423102Copy full SHA for f423102
src/Collector.php
@@ -70,11 +70,13 @@ public function getResults(): array
70
$count = 0;
71
$collectedData = [];
72
$isCallableWhen = is_callable($this->when);
73
- $when = $this->when;
74
75
foreach ($this->data as $key => $datum) {
76
if ($isCallableWhen) {
77
- /** @var callable(mixed $datum, int|string|null $key=): bool $when */
+ /**
+ * @var callable(mixed $datum, int|string|null $key=): bool $when
78
+ */
79
+ $when = $this->when;
80
$isFound = ($when)($datum, $key);
81
82
Assert::boolean($isFound);
0 commit comments