From 21e5cba4deb1fbeb00c14fd5581b764371b2b13d Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Tue, 3 Aug 2021 10:59:20 +0300 Subject: [PATCH] Fix proxy example in README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 457a5a00a..53aa0c86c 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,8 @@ $proxy = $factory->createProxy( function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) { $wrappedObject = new \MyApp\HeavyComplexObject(); // instantiation logic here $initializer = null; // turning off further lazy initialization + + return true; // report success } );