Skip to content
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

0.1.2 Version is not compatible with PHP 7.4 | unexpected 'protected', expecting variable (T_VARIABLE) at /ConnectionRepository.php:13 #10

Open
julianlaibach opened this issue Aug 16, 2021 · 1 comment

Comments

@julianlaibach
Copy link

Hi @georgeboot, since the Constructor property promotion is only Available since PHP 8.x the Minor Update 0.1.2 is no longer compatible with PHP 7.x

I get the Following Error:

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE) {"exception":"[object] (ParseError(code: 0): syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE) at /var/www/html/vendor/georgeboot/laravel-echo-api-gateway/src/ConnectionRepository.php:13)

Downgrading to Version 0.1.0 resolved this Issue for me running my App on PHP 7.4.

Thank you! :)

@georgeboot
Copy link
Owner

Yeah I also noticed that, apologies!

The dev-master has the correct requirements in thecomposer.json, so expect the next release to require PHP 8.

Any specific reasons you haven't upgraded yet? I could easily make the package support 7.4 as well, but kind of also like soft-forcing people to upgrade their PHP versions ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants