Closed SamMousa closed 3 years ago
PHP8 throws a TypeError when we pass an array to preg_match, suppression with @ doesn't work in this scenario. Since preg_match() would never return a truthy value if not passed a string this change shouldn't impact any other cases or PHP versions.
TypeError
preg_match
@
preg_match()
Thanks
Released as 1.4.1
PHP8 throws a
TypeError
when we pass an array topreg_match
, suppression with@
doesn't work in this scenario. Sincepreg_match()
would never return a truthy value if not passed a string this change shouldn't impact any other cases or PHP versions.