@@ -30,7 +30,7 @@ public function sayHello3(string $s): void
30
30
public function sayHello4 (string $ s ): void
31
31
{
32
32
if (preg_match ('/data-(\d{6})\.json$/ ' , $ s , $ matches ) <= 0 ) {
33
- assertType ('array{ } ' , $ matches );
33
+ assertType ('list{0?: string, 1?: non-falsy-string&numeric-string } ' , $ matches );
34
34
35
35
return ;
36
36
}
@@ -41,7 +41,7 @@ public function sayHello4(string $s): void
41
41
public function sayHello5 (string $ s ): void
42
42
{
43
43
if (preg_match ('/data-(\d{6})\.json$/ ' , $ s , $ matches ) < 1 ) {
44
- assertType ('array{ } ' , $ matches );
44
+ assertType ('list{0?: string, 1?: non-falsy-string&numeric-string } ' , $ matches );
45
45
46
46
return ;
47
47
}
@@ -52,7 +52,7 @@ public function sayHello5(string $s): void
52
52
public function sayHello6 (string $ s ): void
53
53
{
54
54
if (1 > preg_match ('/data-(\d{6})\.json$/ ' , $ s , $ matches )) {
55
- assertType ('array{ } ' , $ matches );
55
+ assertType ('list{0?: string, 1?: non-falsy-string&numeric-string } ' , $ matches );
56
56
57
57
return ;
58
58
}
0 commit comments