Replies: 1 comment
-
PHPStan works with the fact whether the delimiter is a non-empty-string or not. Please post a reproducing example where you think it's wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
phpstan appears to assume
explode()
will always return a truthy value, but this isn't the case, as it will returnFALSE
if the separator is an empty string. The return type ofexplode()
in the PHP documentation is shown asarray
but actually it'sarray|false
.Beta Was this translation helpful? Give feedback.
All reactions