zfcampus / zf-console

Create console applications in PHP
BSD 3-Clause "New" or "Revised" License
64 stars 25 forks source link

Wrong zend/console requirement version #23

Closed krzysztof-alboszta closed 9 years ago

krzysztof-alboszta commented 9 years ago

as DefaultRouteMatcher and RouteMatcherInterface was introduced in Zend 2.3.0 release the composer.json requirement specified as

"zendframework/zend-console": "~2.0"

could not met the proper version of ZendConsole which cause the errors when importing

use Zend\Console\RouteMatcher\DefaultRouteMatcher;
use Zend\Console\RouteMatcher\RouteMatcherInterface;

minimal version requirements should be reviewed to prevent that issue

RalfEggert commented 9 years ago

Well, since ~2.0 is equivalent to >=2.0 <3.0 it should be OK, I think. I currently get 2.4.0 installed when updating via Composer.

krzysztof-alboszta commented 9 years ago

well but if you have specific version of Zend Framework installed in version less than 2.3.0 composer would think that everything is OK which is not so the version should be defined at the minimal requirements

RalfEggert commented 9 years ago

Added a fix