I am looking for a way to access the default assignment of a property without instantiating the class.
eg.
class Foo { private $bar = 'bar'; } $reflClass = new ReflectionClass('Foo'); $reflProp = $reflClass->getProperty('bar');
Now what? If I use $reflProp->getValue() (without an object argument), this will not work.
source share