File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -200,10 +200,8 @@ private function createProxyClass(
200200 string $ methods ,
201201 bool $ isInterface ,
202202 ): string {
203- $ template = "final readonly class %s %s %s
203+ $ template = "final %s class %s %s %s
204204{
205- private ?%s \$_proxiedObject;
206-
207205 public function __construct(
208206 private \Psr\Container\ContainerInterface \$container
209207 ) {
@@ -222,11 +220,11 @@ private function _proxied(): %s
222220
223221 return \sprintf (
224222 $ template ,
223+ $ classRef ->isReadOnly () ? 'readonly ' : '' ,
225224 $ proxyClassName ,
226225 $ isInterface ? 'implements ' : 'extends ' ,
227226 $ fullClassName ,
228227 $ fullClassName ,
229- $ fullClassName ,
230228 $ this ->createProxyClassConstructor ($ classRef ),
231229 $ methods
232230 );
You can’t perform that action at this time.
0 commit comments