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

PHP Fatal error #7

Open
leite opened this issue Nov 27, 2018 · 3 comments
Open

PHP Fatal error #7

leite opened this issue Nov 27, 2018 · 3 comments

Comments

@leite
Copy link

leite commented Nov 27, 2018

Object has become a reserved word.

and is throwing PHP Fatal error: Cannot use 'Object' as class name as it is reserved in [...]/vendor/koine/core/lib/Koine/Object.php on line 8

@mjacobus
Copy link
Member

Hi @leite

Thank you for reporting!

Are you using this library heavily? If so, I advise to fork it and fix it. Feel free to create a PR (the fix should not be very difficult, though it would be not backwards compatible.)

@leite
Copy link
Author

leite commented Nov 30, 2018

no problem mate,

I just downgrade php to ~7.1 and it is working fine.

But what should I rename Object to? BaseObject, BaseClass ... ?

@mjacobus
Copy link
Member

Naming is only one of the most difficult things 😆

BaseObject I think 🤔

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