mb_internal_encoding()
always returns string when called without an argument
#7408
Labels
bug
easy problems
Issues that can be fixed without background knowledge of Psalm
Help wanted
internal stubs/callmap
mb_internal_encoding()
returnsstring|bool
in principle, but when called without an argument, it's alwaysstring
: https://www.php.net/manual/en/function.mb-internal-encoding.phpExample:
https://psalm.dev/r/32218305f6
PHPStan does take this into account, and is not reporting anything.
The text was updated successfully, but these errors were encountered: