Skip to content

Commit 4cdb1ec

Browse files
committed
Update reset-after-non-empty-loop.php
1 parent 4d84397 commit 4cdb1ec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/PHPStan/Analyser/nsrt/reset-after-non-empty-loop.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
function mergeJoins(array $joins, string $s, string $hash): void
1111
{
1212
if (count($joins) === 0) return;
13+
assertType('non-empty-list<string>', $joins);
1314

1415
/** @var array<array<string>> $aggregated */
1516
$aggregated = [];
1617
foreach ($joins as $join) {
1718
$aggregated[$s][$hash] = $s;
1819
}
20+
assertType('non-empty-array<non-empty-array<string>>', $aggregated);
1921

2022
foreach ($aggregated as $sameJoins) {
2123
$first = reset($sameJoins);

0 commit comments

Comments
 (0)