zendframework / zend-expressive

PSR-15 middleware in minutes!
BSD 3-Clause "New" or "Revised" License
711 stars 197 forks source link

Error on expressive setup due to dependency #240

Closed jeanCarloMachado closed 8 years ago

jeanCarloMachado commented 8 years ago

I got the following error when trying to use expressive with PHP7:


composer create-project -s rc zendframework/zend-expressive-skeleton expressive
Installing zendframework/zend-expressive-skeleton (1.0.0rc4)
  - Installing zendframework/zend-expressive-skeleton (1.0.0rc4)
    Loading from cache

Created project in expressive
PHP Fatal error:  Cannot use 'String' as class name as it is reserved in phar:///usr/local/bin/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

Fatal error: Cannot use 'String' as class name as it is reserved in phar:///usr/local/bin/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 18

I checked the third project and they already changed the String class to StringConstraint, maybe what is missing is a simple update on the composer.json.

Maks3w commented 8 years ago

Looks you have a old version of composer.phar