non-empty-string|array
in str_replace
#9870
Labels
Milestone
non-empty-string|array
in str_replace
#9870
Feature request
Related to #5323
PHPStan knows
str_replace
returns non-empty-string when all three arguments are non-empty-string, but it's not true when subject isnon-empty-string|array
.https://phpstan.org/r/ebe95b41-e0bf-4a1e-8eb3-3d3e4492555e
Line 13 should be
list<non-empty-string>|non-empty-string
Did PHPStan help you today? Did it make you happy in any way?
I appreciate your hard work to improve PHPStan!
The text was updated successfully, but these errors were encountered: