Skip to content

Commit 94008eb

Browse files
committed
fix PHP 7.4
1 parent d7ba1e3 commit 94008eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPStan/Analyser/nsrt/bug-11518-types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function blah(array $a): array
1212
{
1313
if (!array_key_exists('thing', $a)) {
1414
$a['thing'] = 'bla';
15-
assertType('non-empty-array&hasOffsetValue(\'thing\', \'bla\')', $a);
15+
assertType('non-empty-array<mixed>&hasOffsetValue(\'thing\', \'bla\')', $a);
1616
} else {
1717
assertType('non-empty-array&hasOffset(\'thing\')', $a);
1818
}

0 commit comments

Comments
 (0)