spatie / ray

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

Return false if success variable not defined #635

Closed cmgmyr closed 2 years ago

cmgmyr commented 2 years ago

On occasion, within our Laravel test suite, we'll get random errors with Ray when a request cannot be completed. All that shows is a failure because the $success variable is not defined.

ErrorException : Undefined variable $success
 /project/vendor/spatie/ray/src/Client.php:60
 /project/vendor/spatie/ray/src/Client.php:39
 /project/vendor/spatie/ray/src/Client.php:66
...

After implementing this change locally, the underlying failure was able to bubble up as expected.