The comment by @daniellienert in https://github.com/neos/flow-development-collection/pull/2434#discussion_r599318551 made me think…
Well, this is on purpose. The method is provided by
symfony/polyfill-php80
which is required throughsymfony/console
.
I (and probably others) think “oh, that would be a nice function to use” or stumble over “ah, is this available in all PHP versions we care support?”. Now, would those polyfill packages be a solution? It would:
- make us think less
- avoid errors due to unavailable functions
- allow to “code for the future” already
The fact we have them already means we could require them explictly and then use them. In any case, adding replace
statements as documented might be a good idea,
Opnions?