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 7.1: Fatal error: Dynamic class names are not allowed in compile-time ::class fetch #58

Closed
Pittiplatsch opened this issue Sep 20, 2023 · 0 comments · Fixed by #60
Closed

Comments

@Pittiplatsch
Copy link

Thank you for this nice light-weight library - I use it a lot for testing purposes 👍

With version 3.1.0, serialization has stopped working under PHP 7.1 due to using an unsupported feature:

Fatal error: Dynamic class names are not allowed in compile-time ::class fetch in zumba/json-serializer/src/JsonSerializer/JsonSerializer.php on line 266

'::class' on objects is only allowed since PHP 8.0

Pittiplatsch pushed a commit to Pittiplatsch/zumba-json-serializer that referenced this issue Oct 13, 2023
jrbasso added a commit that referenced this issue Oct 18, 2023
…ss-names

Keep BC compat to PHP 7: Don't use "::class" on dynamic class names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant