willdurand / BazingaHateoasBundle

Integration of the Hateoas library into Symfony.
MIT License
294 stars 59 forks source link

Incorrect version required in composer.json #61

Closed solazs closed 7 years ago

solazs commented 7 years ago

Line 36 of https://github.com/willdurand/BazingaHateoasBundle/blob/master/DependencyInjection/Compiler/ExtensionDriverPass.php results in the following syntax error:

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting
identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in
myapp/vendor/willdurand/hateoas-bundle/Bazinga/Bundle/HateoasBundle/DependencyInjection/Compiler/ExtensionDriverPass.php
on line 36

  [Symfony\Component\Debug\Exception\FatalErrorException]

  Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting
identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'

PHP 5.4.45-0+deb7u5

Solution is either to correct the required PHP version (5.5 according to php.net) in composer.json, or just provide the interface name as a string.

mikaelcom commented 7 years ago

Sorry but why did you close this issue since I just encountered the issue today with this requirement "willdurand/hateoas-bundle": "^1.0", that passed under PHP 5.4.40? Did you fix anything matching version ~1.0? Thx anyway :wink: