@@ -70,7 +70,7 @@ public static function generateLazyGhost(\ReflectionClass $class): string
7070 }
7171
7272 if ($ flags & (\ReflectionProperty::IS_FINAL | \ReflectionProperty::IS_PRIVATE )) {
73- throw new LogicException (sprintf ('Cannot generate lazy ghost: property "%s::$%s" is final or private(set). ' , $ class ->name , $ name ));
73+ throw new LogicException (\ sprintf ('Cannot generate lazy ghost: property "%s::$%s" is final or private(set). ' , $ class ->name , $ name ));
7474 }
7575
7676 $ p = $ propertyScopes [$ k ][4 ] ?? Hydrator::$ propertyScopes [$ class ->name ][$ k ][4 ] = new \ReflectionProperty ($ scope , $ name );
@@ -92,7 +92,7 @@ public static function generateLazyGhost(\ReflectionClass $class): string
9292 $ arg = '$ ' .$ method ->getParameters ()[0 ]->name ;
9393 $ hooks .= " set( {$ parameters }) { \$this->initializeLazyObject(); parent:: \${$ name }::set( {$ arg }); } \n" ;
9494 } else {
95- throw new LogicException (sprintf ('Cannot generate lazy ghost: hook "%s::%s()" is not supported. ' , $ class ->name , $ method ->name ));
95+ throw new LogicException (\ sprintf ('Cannot generate lazy ghost: hook "%s::%s()" is not supported. ' , $ class ->name , $ method ->name ));
9696 }
9797 }
9898
@@ -159,7 +159,7 @@ public static function generateLazyProxy(?\ReflectionClass $class, array $interf
159159 }
160160
161161 if ($ flags & (\ReflectionProperty::IS_FINAL | \ReflectionProperty::IS_PRIVATE )) {
162- throw new LogicException (sprintf ('Cannot generate lazy proxy: property "%s::$%s" is final or private(set). ' , $ class ->name , $ name ));
162+ throw new LogicException (\ sprintf ('Cannot generate lazy proxy: property "%s::$%s" is final or private(set). ' , $ class ->name , $ name ));
163163 }
164164
165165 $ p = $ propertyScopes [$ k ][4 ] ?? Hydrator::$ propertyScopes [$ class ->name ][$ k ][4 ] = new \ReflectionProperty ($ scope , $ name );
@@ -228,7 +228,7 @@ public static function generateLazyProxy(?\ReflectionClass $class, array $interf
228228
229229 EOPHP ;
230230 } else {
231- throw new LogicException (sprintf ('Cannot generate lazy proxy: hook "%s::%s()" is not supported. ' , $ class ->name , $ method ->name ));
231+ throw new LogicException (\ sprintf ('Cannot generate lazy proxy: hook "%s::%s()" is not supported. ' , $ class ->name , $ method ->name ));
232232 }
233233 }
234234
0 commit comments