Preg_match has different result when $match
variable is declared earlier
#11580
Labels
Milestone
$match
variable is declared earlier
#11580
Bug report
Preg_match has different result when
$match
variable is declared earlier. In code snippet there are 2 functions with same results, but one is reported as error.Code snippet that reproduces the problem
https://phpstan.org/r/658ff574-8680-4d35-8bb3-26b3143bddab
Expected output
On line 29 is expected
Dumped type: array{0: string, 1: non-empty-string, 2?: non-empty-string}
Did PHPStan help you today? Did it make you happy in any way?
Yes! preg_* analysis is killer feature. Thanks!
The text was updated successfully, but these errors were encountered: