--TEST-- Bug #72177 Scope issue in __destruct after ReflectionProperty::setValue() --FILE-- bar); } } class Bar extends Foo { private $baz = 'baz'; private static $tab = 'tab'; public function __get(string $name) { var_dump($this->baz); var_dump(self::$tab); return $name; } } $r = new ReflectionProperty(Foo::class, 'bar'); echo "OK\n"; ?> --EXPECT-- OK