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 98ad59c commit 4e46d4bCopy full SHA for 4e46d4b
tests/Type/Php/data/preg_match_unchecked.php
@@ -7,7 +7,7 @@
7
$string = 'Hello World';
8
9
// when return value isn't checked, we may-or-may-not have matches
10
-$type = "array{0?: string, 1?: non-empty-string, 2?: 'o', 3?: 'World'}";
+$type = "list{0?: string, 1?: non-empty-string, 2?: 'o', 3?: 'World'}";
11
12
// @phpstan-ignore-next-line - use of unsafe is intentional
13
\preg_match($pattern, $string, $matches);
0 commit comments