Closed SebKay closed 2 years ago
This is because spatie/macroable ^2.0 is only compatible with PHP ^8.0, but spatie/ray is supposed to support PHP ^7.4|^8.0.
spatie/macroable
spatie/ray
The issue is the following line in spatie/macroable: https://github.com/spatie/macroable/blob/main/src/Macroable.php#L14. It uses the pipe operator in the method signature, which PHP ^7.4 doesn't understand, hence the error.
Here's the error:
Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in .../vendor/spatie/macroable/src/Macroable.php:14
Hopefully it's ok to revert this, but I understand if it's not viable!
Thanks for the time and effort you've put into the Ray plugin. I've found it tremendously helpful over the last year!
Thanks!
This is because
spatie/macroable
^2.0 is only compatible with PHP ^8.0, butspatie/ray
is supposed to support PHP ^7.4|^8.0.The issue is the following line in
spatie/macroable
: https://github.com/spatie/macroable/blob/main/src/Macroable.php#L14. It uses the pipe operator in the method signature, which PHP ^7.4 doesn't understand, hence the error.Here's the error:
Hopefully it's ok to revert this, but I understand if it's not viable!
Thanks for the time and effort you've put into the Ray plugin. I've found it tremendously helpful over the last year!