diff --git a/examples/ghost-object.php b/examples/ghost-object.php index 1f75a7874..09df0fcb8 100644 --- a/examples/ghost-object.php +++ b/examples/ghost-object.php @@ -32,9 +32,10 @@ public function getFoo() : string for ($i = 0; $i < 1000; $i += 1) { $proxy = $factory->createProxy( 'Foo', - function ($proxy, $method, $parameters, & $initializer) { + function ($proxy, $method, $parameters, & $initializer, array $properties) { $initializer = null; - $proxy->setFoo('Hello World!'); + + $properties["\0Foo\0foo"] = 'Hello World!'; return true; }