Parameter types of PHPH 8.0 str_*() functions too strict
derrabus opened this issue · comments
Our polyfills of the str_*()
functions introduced with PHP 8.0 seem to be a bit too strict about typing. Our version throws a TypeError
when null
is passed to them while PHP's own implementation treats null
like an empty string.
This has caused some issues on Symfony after we have migrated to the polyfilled functions, for example symfony/symfony#42290
Indeed! Can you please send a PR? Don't hesitate to merge and release it once it's approved :)