Welcome Guest, Not a member yet? Register   Sign In
php 8 polyfill
#1

At the moment, a PR has been added that implements a polyfill for the str_contains function from PHP-8.
I myself once wanted to implement something similar, but there is one caveat.
It seems to me that the best solution would be to create a separate package in the official repository with a polyfill for all string functions added in php-8 and add it to the composer dependency.

Why a package and not an integration into the core of the framework?
When the minimum php version for the framework is 8.0, the maintainers will not need to remove the polyfill from the core. They can simply exclude the package from the composer dependencies.
Reply


Messages In This Thread
php 8 polyfill - by iRedds - 12-25-2021, 10:38 PM
RE: php 8 polyfill - by kenjis - 12-26-2021, 12:33 AM
RE: php 8 polyfill - by iRedds - 12-26-2021, 01:37 AM
RE: php 8 polyfill - by kenjis - 12-26-2021, 03:19 AM
RE: php 8 polyfill - by iRedds - 12-26-2021, 06:26 PM
RE: php 8 polyfill - by kenjis - 12-26-2021, 07:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB