spatie / ray

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

Global ray breaks object dumping for Phalcon framework #917

Open ALameLlama opened 1 month ago

ALameLlama commented 1 month ago

Describe the bug Upgrading from 1.0.6 to 1.1.0 seems to break using ray on objects within the Phalcon framework.

doing ray($model) Will normally return an instance of model or something extending it.

or ray($model->relationship) Would normally return an instance of simple result

But after upgrading it just doesn't return anything in the ray client, like I didn't have any rays in the code base.

I noticed doing ray()->raw($model) or ray()->raw($model->relationship) seem to give the old output.

I have a feeling that this commit is the culprit https://github.com/spatie/ray/commit/f547ffbf0a6aff31be1298595dd17e93c4dc6e1b

But I've tried to track it down more specially but since this comes with a bundled ray version it's hard to figure out what is actually breaking.

https://github.com/spatie/global-ray/issues/48