Remove unnecessary PHP polyfills
Composer installs symfony/polyfill-php* packages even when the PHP version already has every function they backport. This metapackage declares them as replaced, so Composer skips them and the autoloader stops loading dead code.
composer require roxblnfk/unpolyA version 1.8.X.N requires PHP >= 8.X and replaces the polyfill of PHP 8.X plus the N previous PHP versions:
| Version | Requires PHP | Replaces polyfills |
|---|---|---|
1.8.6.0 |
>= 8.6 |
8.6 |
1.8.6.1 |
>= 8.6 |
8.5 .. 8.6 |
1.8.6.6 |
>= 8.6 |
8.0 .. 8.6 |
1.8.6.8 |
>= 8.6 |
7.3 .. 8.6 |
Composer picks the newest version your PHP allows, which replaces the widest range of polyfills published for that PHP. Pin a lower N only to keep some polyfills installed.