refactor for PHP-7.2
[m6w6/ext-propro] / tests / 002.phpt
index 95c9c02088dc53330f37570dc5789d41e9d1dbdd..c3579c7c0f52ee5a994c189d06b12acd85f1f54f 100644 (file)
@@ -10,7 +10,9 @@ echo "Test\n";
 class c {
        private $storage = array();
        function __get($p) {
-               return new php\PropertyProxy($this->storage, $p);
+               $pp = new php\PropertyProxy(null, $p,
+                       new php\PropertyProxy($this, "storage"));
+               return $pp; 
        }
        function __set($p, $v) {
                $this->storage[$p] = $v;