Skip to content

Commit

Permalink
#272 - Class over string reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 28, 2016
1 parent d40b745 commit 6bf00cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/ghost-object.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getFoo() : string

for ($i = 0; $i < 1000; $i += 1) {
$proxy = $factory->createProxy(
'Foo',
Foo::class,
function (GhostObjectInterface $proxy, string $method, array $parameters, & $initializer, array $properties) {
$initializer = null;

Expand Down
2 changes: 1 addition & 1 deletion examples/remote-proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function bar() : string
$factory = new RemoteObjectFactory(
new XmlRpc(new Client('http://localhost:9876/remote-proxy/remote-proxy-server.php'))
);
$proxy = $factory->createProxy('Foo');
$proxy = $factory->createProxy(Foo::class);

try {
var_dump($proxy->bar()); // bar remote !
Expand Down
2 changes: 1 addition & 1 deletion examples/virtual-proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function doFoo()

for ($i = 0; $i < 1000; $i += 1) {
$proxy = $factory->createProxy(
'Foo',
Foo::class,
function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) {
$initializer = null;
$wrappedObject = new Foo();
Expand Down

0 comments on commit 6bf00cf

Please sign in to comment.