Skip to content

Replace legacy polyfills, unbound php upper bound #51

Closed
@nicolas-grekas

Description

@nicolas-grekas

I suggest the following patch to composer.json:

Unlocking the upper bound of PHP to give back control to end users about where they want to run the tool.
Replacing some polyfills that don't need to be installed, but would be otherwise.

--- a/composer.json
+++ b/composer.json
@@ -26,7 +26,7 @@
         }
     ],
     "require": {
-        "php": "8.1.*||8.2.*||8.3.*",
+        "php": ">=8.1",
         "ext-zip": "*",
         "composer/composer": "dev-main@dev",
         "guzzlehttp/guzzle": "^7.8",
@@ -44,6 +44,11 @@
         "psalm/plugin-phpunit": "^0.18.4",
         "vimeo/psalm": "^5.22"
     },
+    "replace": {
+        "symfony/polyfill-php81": "*",
+        "symfony/polyfill-php80": "*",
+        "symfony/polyfill-php73": "*"
+    },
     "config": {
         "sort-packages": true,
         "preferred-install": "dist",

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions