spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
564 stars 102 forks source link

Revert version of spatie/macroable to ^1.0 #703

Closed SebKay closed 2 years ago

SebKay commented 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.

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!

freekmurze commented 2 years ago

Thanks!