@@ -70,7 +70,7 @@ public static function generateLazyGhost(\ReflectionClass $class): string
70
70
}
71
71
72
72
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 ));
74
74
}
75
75
76
76
$ 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
92
92
$ arg = '$ ' .$ method ->getParameters ()[0 ]->name ;
93
93
$ hooks .= " set( {$ parameters }) { \$this->initializeLazyObject(); parent:: \${$ name }::set( {$ arg }); } \n" ;
94
94
} 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 ));
96
96
}
97
97
}
98
98
@@ -159,7 +159,7 @@ public static function generateLazyProxy(?\ReflectionClass $class, array $interf
159
159
}
160
160
161
161
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 ));
163
163
}
164
164
165
165
$ 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
228
228
229
229
EOPHP ;
230
230
} 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 ));
232
232
}
233
233
}
234
234
0 commit comments