@@ -477,13 +477,13 @@ function bug11323(string $s): void {
477477 assertType ('array{non-falsy-string, non-falsy-string} ' , $ matches );
478478 }
479479 if (preg_match ('{([[:digit:]])} ' , $ s , $ matches )) {
480- assertType ('array{non-falsy -string, numeric-string} ' , $ matches );
480+ assertType ('array{non-empty -string, numeric-string} ' , $ matches );
481481 }
482482 if (preg_match ('{([\d])(\d)} ' , $ s , $ matches )) {
483483 assertType ('array{non-falsy-string, numeric-string, numeric-string} ' , $ matches );
484484 }
485485 if (preg_match ('{([0-9])} ' , $ s , $ matches )) {
486- assertType ('array{non-falsy -string, numeric-string} ' , $ matches );
486+ assertType ('array{non-empty -string, numeric-string} ' , $ matches );
487487 }
488488 if (preg_match ('{(\p{L})(\p{P})(\p{Po})} ' , $ s , $ matches )) {
489489 assertType ('array{non-falsy-string, non-empty-string, non-empty-string, non-empty-string} ' , $ matches );
@@ -654,7 +654,7 @@ function (string $s): void {
654654
655655function (string $ s ): void {
656656 if (preg_match ('/( \d+ )/x ' , $ s , $ matches )) {
657- assertType ('array{non-falsy -string, numeric-string} ' , $ matches );
657+ assertType ('array{non-empty -string, numeric-string} ' , $ matches );
658658 }
659659};
660660
@@ -792,7 +792,7 @@ function testUnescapeBackslash (string $string): void {
792792 if (preg_match (<<<'EOD'
793793 ~(\d)~
794794 EOD, $ string , $ matches )) {
795- assertType ("array{non-falsy -string, numeric-string} " , $ matches );
795+ assertType ("array{non-empty -string, numeric-string} " , $ matches );
796796 }
797797
798798 if (preg_match (<<<'EOD'
@@ -1000,7 +1000,7 @@ function bug12749e(string $str): void
10001000{
10011001 // no ^ $ delims, therefore can be anything which contains a number
10021002 if (preg_match ('/[0-9]/ ' , $ str , $ match )) {
1003- assertType ('array{non-falsy -string} ' , $ match );
1003+ assertType ('array{non-empty -string} ' , $ match );
10041004 }
10051005}
10061006
0 commit comments