Ten sposób zwróci mi tylko 'myVar'. Co zrobić żeby zwrócone zostały też zmienne odziedziczone po ArrayObject?
<?php class MyClass extends ArrayObject { private $myVar = 'smth'; } $ob = new ArrayObject(); $ob->append('item 1'); $ref = new ReflectionObject($ob); ?>