contao / managed-edition

Contao Managed Edition
17 stars 13 forks source link

composer create-project contao/managed-edition requires PHP 7.1 #25

Closed fritzmg closed 6 years ago

fritzmg commented 7 years ago

The current composer.lock file of version 4.4.2 contains dependencies that require PHP 7.1. Thus if you try to run

composer create-project contao/managed-edition

With PHP 7.0 or lower, you will run into errors like these:

Problem 1
    - Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
    - doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/cache v1.7.0 -> satisfiable by doctrine/cache[v1.7.0].
    - doctrine/cache v1.7.0 requires php ~7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 3
    - Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
    - doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 4
    - Installation request for doctrine/common v2.8.0 -> satisfiable by doctrine/common[v2.8.0].
    - doctrine/common v2.8.0 requires php ~7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 5
    - Installation request for doctrine/dbal v2.6.0 -> satisfiable by doctrine/dbal[v2.6.0].
    - doctrine/dbal v2.6.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
  Problem 6
    - doctrine/dbal v2.6.0 requires php ^7.1 -> your PHP version (7.0.21) does not satisfy that requirement.
    - doctrine/doctrine-bundle 1.6.8 requires doctrine/dbal ~2.3 -> satisfiable by doctrine/dbal[v2.6.0].
    - Installation request for doctrine/doctrine-bundle 1.6.8 -> satisfiable by doctrine/doctrine-bundle[1.6.8].

This happens when trying to install Contao 4.4.2 via the Contao Manager for example on a webspace that only runs PHP 7.0.

fritzmg commented 7 years ago

Same applies to the contao/standard-edition of course - but I guess it's less of a problem there, since that one isn't used by the Contao Manager.

leofeyer commented 7 years ago

This has been fixed meanwhile.

kikmedia commented 6 years ago

Well, then there is a regression in 4.4.8, since I‘ve got the very same error messages yesterday on a Hosteurope Webserver, running the highest possible PHP version 7.0.25, which will stay probably until the middle of 2018, according to Hosteurope support guys.

leofeyer commented 6 years ago

You might be right. The composer.lock file shows that doctrine/annotations is installed in version 1.5.0, which requires PHP 7.1+.

leofeyer commented 6 years ago

I have repacked everything and I have verified that there are no PHP 7.1+ only packages anymore.