@@ -964,21 +964,21 @@ function bug11744(string $string): void
964
964
function bug12749 (string $ str ): void
965
965
{
966
966
if (preg_match ('/[A-Z]/ ' , $ str , $ match )) {
967
- assertType ('array{non-empty-string} ' , $ match );
967
+ assertType ('array{non-empty-string} ' , $ match ); // could be non-falsy-string
968
968
}
969
969
}
970
970
971
971
function bug12749a (string $ str ): void
972
972
{
973
973
if (preg_match ('/[A-Z]{2,}/ ' , $ str , $ match )) {
974
- assertType ('array{non-falsy -string} ' , $ match );
974
+ assertType ('array{non-empty -string} ' , $ match ); // could be non-falsy-string
975
975
}
976
976
}
977
977
978
978
function bug12749b (string $ str ): void
979
979
{
980
980
if (preg_match ('/[0-9][A-Z]/ ' , $ str , $ match )) {
981
- assertType ('array{non-falsy -string} ' , $ match );
981
+ assertType ('array{non-empty -string} ' , $ match ); // could be non-falsy-string
982
982
}
983
983
}
984
984
@@ -992,7 +992,7 @@ function bug12749c(string $str): void
992
992
function bug12749d (string $ str ): void
993
993
{
994
994
if (preg_match ('/[0-9]?[A-Z]/ ' , $ str , $ match )) {
995
- assertType ('array{non-falsy -string} ' , $ match );
995
+ assertType ('array{non-empty -string} ' , $ match ); // could be non-falsy-string
996
996
}
997
997
}
998
998
0 commit comments