[BUG][php-symfony] Composer installation fails under PHP 5.4
Created by: ybelenko
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
What's the version of OpenAPI Generator used? -
Have you search for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Bounty to sponsor the fix (example)
Description
During review of #6078 found following installation problem:
$ composer install
Deprecation warning: Your package name GIT_USER_ID/GIT_REPO_ID is invalid, it should not contain uppercase characters. We suggest using git_user_id/git_repo_id instead. Make sure you fix this as Composer 2.0 will error.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/framework-bundle v4.4.7 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.6 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.5 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.4 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.3 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.2 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.1 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.4.0 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.9 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.8 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.7 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.6 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.5 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.4 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.3 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.2 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.11 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.10 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.1 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.3.0 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.9 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.8 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.7 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.6 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.5 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.4 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.3 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.2 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.12 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.11 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.10 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.1 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.2.0 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.9 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.8 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.7 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.6 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.5 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.4 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.3 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.2 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.12 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.11 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.10 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.1 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v4.1.0 requires php ^7.1.3 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.9 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.8 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.7 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.6 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.5 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.4 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.39 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.38 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.37 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.36 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.35 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.34 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.33 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.32 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.31 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.30 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.3 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.29 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.28 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.27 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.26 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.25 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.24 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.23 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.22 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.21 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.20 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.2 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.19 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.18 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.17 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.16 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.15 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.14 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.13 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.12 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.11 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.10 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.1 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.4.0 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.9 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.8 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.7 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.6 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.5 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.4 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.3 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.2 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.18 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.17 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.16 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.15 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.14 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.13 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.12 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.11 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.10 requires php ^5.5.9|>=7.0.8 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.1 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- symfony/framework-bundle v3.3.0 requires php >=5.5.9 -> your PHP version (7.2.21) overridden by "config.platform.php" version (5.4) does not satisfy that requirement.
- Installation request for symfony/framework-bundle ^3.3|^4.1 -> satisfiable by symfony/framework-bundle[v3.3.0, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.17, v3.3.18, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.22, v3.4.23, v3.4.24, v3.4.25, v3.4.26, v3.4.27, v3.4.28, v3.4.29, v3.4.3, v3.4.30, v3.4.31, v3.4.32, v3.4.33, v3.4.34, v3.4.35, v3.4.36, v3.4.37, v3.4.38, v3.4.39, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.1, v4.3.10, v4.3.11, v4.3.2, v4.3.3, v4.3.4, v4.3.5, v4.3.6, v4.3.7, v4.3.8, v4.3.9, v4.4.0, v4.4.1, v4.4.2, v4.4.3, v4.4.4, v4.4.5, v4.4.6, v4.4.7].
openapi-generator version
Current master
branch.
Which is more important is tested PHP version in composer.json
:
{
...
"config": {
"platform": {
"php": "5.4"
}
}
}
OpenAPI declaration file content or url
Build under samples directory.
Command line used for generation
Build under samples directory.
Steps to reproduce
$ cd samples/server/petstore/php-symfony/SymfonyBundle-php
$ composer install
Related issues/PRs
Doesn't compiles with PHP 7.2 too #6081 (closed)
Suggest a fix
#1246 (closed) suggested to use minimal PHP version 7.x long time ago. Need to upgrade composer template and test installation with emulated PHP 7.0/7.1/7.2. Emulation can be done with platform Composer option.
cc @jebentier @dkarlovi @mandrean @jfastnacht @ackintosh @renepardon cc PR's author @reznikartem