adjust compatibility string methods. fixes #4221
commit7bb40883ca42723ee0037eb3f976ea5c6c4793ae
authorAndreas Gohr <andi@splitbrain.org>
Thu, 22 Feb 2024 18:00:44 +0000 (22 19:00 +0100)
committerAndreas Gohr <andi@splitbrain.org>
Thu, 22 Feb 2024 18:00:44 +0000 (22 19:00 +0100)
tree12b21ecf6d9400040d44bd791192f4a61d28d619
parentff6a7a9d5faee648df31090bfa612e064ab19bfd
adjust compatibility string methods. fixes #4221

This uses the implementations from https://github.com/symfony/polyfill-php80

Not only does it fix signature compatibility by accepting null strings
but it also adjust the handling of falsy values (like 0)
inc/compatibility.php