normalizer_is_normalized has nullable string parameter
othercorey opened this issue · comments
othercorey commented
The normalizer_is_normalized pollyfill string
parameter is nullable while php implementation is not.
https://github.com/symfony/polyfill-intl-normalizer/blob/main/bootstrap80.php#L14-L16
Christophe Coevoet commented
This is done because in non-strict mode, PHP accepts strings in core functions using a string
typehint (triggering a deprecation in PHP 8.1+), which we cannot fully emulate in userland (that's part of the reasons why this behavior is deprecated in PHP 8.1 btw). See #330
othercorey commented
Thanks for explaining! This definitely sounds correct for pollyfill and the issue I ran into updating psalm callmap can be handled differently.