โ˜… Ray can now display the values of private properties

1 ยท Freek Van der Herten ยท March 3, 2023, 2:34 p.m.
Our handy Ray debugging app gained a cool new trick: it can now display the values of private properties and results of private methods. Consider this simple class. class PrivateClass { private string $privateProperty = 'this is the value of the private property'; private function privateMethod() { return 'this is the result of the private method'; } } Here's how you can send the value of the private property to Ray. $privateClass = new PrivateClass(); ray()->invade($...