minor #36876 Use ">=" for the "php" requirement (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

Use ">=" for the "php" requirement

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

As explained in https://twitter.com/nicolasgrekas/status/1263023258938548225:

Using `"^7.x"` is our composer.json has been a mistake. We should always use `">=7.x"`! 3 reasons:
1. it's either planned obsolescence xor a strong promise to maintain in the long run. None is sustainable.
2. if you actually end up maintaining in the long run (not by promise but by fact), your latest versions will work with PHP 8 by definition.
3. meanwhile, `"^7.x"` prevented all your ecosystem from experimenting with PHP 8, which means they increased the workload on *you* the core maintainer.

Conclusion: always use `">="` for the `"php"` requirement. Hope for the best (it mostly happens) and enable your community to experiment with the next major asap without adding useless impediments.

Commits
-------

f8aa0873cf Use ">=" for the "php" requirement
This commit is contained in:
Fabien Potencier 2020-05-20 11:06:03 +02:00
commit 8f6afdd9d5
58 changed files with 58 additions and 58 deletions

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"ext-xml": "*",
"doctrine/event-manager": "~1.0",
"doctrine/persistence": "^1.3",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"doctrine/event-manager": "~1.0",
"doctrine/persistence": "^1.3",
"symfony/polyfill-ctype": "~1.8",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"monolog/monolog": "^1.25.1",
"symfony/service-contracts": "^1.1|^2",
"symfony/http-kernel": "^4.3"

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/dependency-injection": "^4.0|^5.0",
"ocramius/proxy-manager": "~2.1"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/translation-contracts": "^1.1|^2",
"twig/twig": "^1.41|^2.10|^3.0"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"ext-xml": "*",
"symfony/http-kernel": "^3.4|^4.0|^5.0",
"symfony/twig-bridge": "^3.4|^4.0|^5.0",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"ext-xml": "*",
"symfony/cache": "^4.4|^5.0",
"symfony/config": "^4.3.4|^5.0",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"ext-xml": "*",
"symfony/config": "^4.2|^5.0",
"symfony/dependency-injection": "^4.4|^5.0",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/twig-bridge": "^4.4|^5.0",
"symfony/http-foundation": "^4.3|^5.0",
"symfony/http-kernel": "^4.4",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/config": "^4.2|^5.0",
"symfony/framework-bundle": "^4.4|^5.0",
"symfony/http-kernel": "^4.4",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/config": "^3.4|^4.0|^5.0",
"symfony/console": "^3.4|^4.0|^5.0",
"symfony/dependency-injection": "^3.4|^4.0|^5.0",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/dom-crawler": "^3.4|^4.0|^5.0"
},
"require-dev": {

View File

@ -21,7 +21,7 @@
"symfony/cache-implementation": "1.0"
},
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/cache": "~1.0",
"psr/log": "~1.0",
"symfony/cache-contracts": "^1.1.7|^2",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/filesystem": "^3.4|^4.0|^5.0",
"symfony/polyfill-ctype": "~1.8"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php73": "^1.8",
"symfony/service-contracts": "^1.1|^2"

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/log": "~1.0"
},
"conflict": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/container": "^1.0",
"symfony/service-contracts": "^1.1.6|^2"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8",
"symfony/polyfill-mbstring": "~1.0"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/log": "~1.0",
"symfony/debug": "^4.4.5",
"symfony/var-dumper": "^4.4|^5.0"

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/event-dispatcher-contracts": "^1.1"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/cache": "^3.4|^4.0|^5.0",
"symfony/service-contracts": "^1.1|^2"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8"
},
"autoload": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/event-dispatcher": "^4.3",
"symfony/intl": "^4.4|^5.0",
"symfony/options-resolver": "~4.3|^5.0",

View File

@ -21,7 +21,7 @@
"symfony/http-client-implementation": "1.1"
},
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/log": "^1.0",
"symfony/http-client-contracts": "^1.1.8|^2",
"symfony/polyfill-php73": "^1.11",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mime": "^4.3|^5.0",
"symfony/polyfill-mbstring": "~1.1"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/error-handler": "^4.4",
"symfony/event-dispatcher": "^4.4",
"symfony/http-foundation": "^4.4|^5.0",

View File

@ -23,7 +23,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8"
},
"autoload": {

View File

@ -24,7 +24,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-intl-icu": "~1.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/options-resolver": "^4.2|^5.0",
"ext-ldap": "*"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/log": "~1.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mailer": "^4.4|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mailer": "^4.4|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mailer": "^4.4|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mailer": "^4.4|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mailer": "^4.4|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/mailer": "^4.4|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"egulias/email-validator": "^2.1.10",
"psr/log": "~1.0",
"symfony/event-dispatcher": "^4.3",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/log": "~1.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-mbstring": "^1.0"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/inflector": "^3.4|^4.0|^5.0"
},
"require-dev": {

View File

@ -23,7 +23,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/inflector": "^3.4|^4.0|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/event-dispatcher-contracts": "^1.1|^2",
"symfony/service-contracts": "^1.1.6|^2"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/security-core": "^3.4|^4.0|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/security-core": "^3.4.22|^4.2.3|^5.0",
"symfony/security-http": "^4.4.1"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/security-core": "^4.4.8",
"symfony/http-foundation": "^3.4.40|^4.4.7|^5.0.7",
"symfony/http-kernel": "^4.4",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/event-dispatcher-contracts": "^1.1|^2",
"symfony/http-foundation": "^3.4.40|^4.4.7|^5.0.7",
"symfony/http-kernel": "^4.4",

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/service-contracts": "^1.0|^2"
},
"autoload": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/translation-contracts": "^1.1.6|^2"
},

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8",
"symfony/polyfill-mbstring": "~1.0",
"symfony/translation-contracts": "^1.1|^2"

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php72": "~1.5"
},

View File

@ -19,7 +19,7 @@
"psr/link-implementation": "1.0"
},
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/link": "^1.0",
"symfony/polyfill-php72": "^1.5"
},

View File

@ -20,7 +20,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/property-access": "^3.4|^4.3|^5.0"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"symfony/polyfill-ctype": "~1.8"
},
"require-dev": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/cache": "^1.0"
},
"suggest": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/container": "^1.0"
},
"suggest": {

View File

@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.1.3",
"php": ">=7.1.3",
"psr/cache": "^1.0",
"psr/container": "^1.0"
},