Skip to content
Discussion options

You must be logged in to vote

Hi, PHPStan doesn't understand that mb_strlen((string) $out) < 5 also filters null, that's pretty complicated code.

You can narrow types the usual way described in the docs: https://phpstan.org/writing-php-code/narrowing-types

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
1 participant