New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 4.5.0 is not compatible with PHP 7 although mentioned in packagist #332
Comments
Idem with PHP 7.1 with tag 4.5.0 : syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/vendor/cocur/slugify/src/Slugify.php:34 protected array $rules = []; I had to write in my composer.json "cocur/slugify": "~4.4.0", to downgrade to 4.4.0 and fix it |
For people affected by this, a better workaround is adding this to your
Doing so, will allow your project to fetch later versions, once you get around to bumping it to PHP |
Please, if we can update this post when its fixed we can remove conflict configuration. |
I have installed version 4.5.0 for my PHP7 compatible application. But it is giving below error
From error we can see that it is not compatible with PHP 7 but what mentioned in packagist
https://packagist.com/orgs/acsi-it/packages/419786/versions/4.5.0.0/view
it is contradictoryThe text was updated successfully, but these errors were encountered: