Skip to content

Commit

Permalink
#208 - rewriting example for the ghost object to show new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 22, 2016
1 parent 4efe674 commit 5da9947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/ghost-object.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5da9947

Please sign in to comment.