File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public static function wrap(object $object): Proxy
5757 public static function wrapFactory (PersistentObjectFactory $ factory ): object
5858 {
5959 if ($ factory instanceof PersistentProxyObjectFactory) {
60- return self ::generateClassFor ($ factory )::createLazyProxy (static function () use ($ factory ) { // @phpstan-ignore staticMethod.notFound
60+ return self ::generateClassFor ($ factory )::createLazyProxy (static function () use ($ factory ) { // @phpstan-ignore staticMethod.notFound
6161 if (Configuration::instance ()->inADataProvider () && $ factory ->isPersisting ()) {
6262 throw new \LogicException ('Cannot access to a persisted object inside a data provider. ' );
6363 }
@@ -72,7 +72,7 @@ public static function wrapFactory(PersistentObjectFactory $factory): object
7272
7373 $ reflector = new \ReflectionClass ($ factory ::class ());
7474
75- return $ reflector ->newLazyProxy (static function () use ($ factory ) {
75+ return $ reflector ->newLazyProxy (static function () use ($ factory ) {
7676 if (Configuration::instance ()->inADataProvider () && $ factory ->isPersisting ()) {
7777 throw new \LogicException ('Cannot access to a persisted object inside a data provider. ' );
7878 }
You can’t perform that action at this time.
0 commit comments