jonathantorres / construct

A PHP project/micro-package generator for PDS compliant projects or micro-packages.
MIT License
266 stars 16 forks source link

It's possible to select a PHP version greater than the one the project is constructed on #77

Closed raphaelstolt closed 8 years ago

raphaelstolt commented 8 years ago

This leads to problems (like shown in the following console excerpt) when doing the composer install.

Creating your project...
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - This package requires php >=5.6.0 but your PHP version (5.5.9) does not satisfy that requirement.
jonathantorres commented 8 years ago

Perhaps instead of using 5.6.0 by default, construct should use the php version that it's installed when the command is executed.

raphaelstolt commented 8 years ago

Yes the default PHP version should be the one used on the constructing system, and it shouldn't be possible to choose one greater than it.

jonathantorres commented 8 years ago

Agreed.