File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,11 +47,9 @@ final public function getTemplate(): Template
4747 }
4848
4949
50- protected function createTemplate (/* string $class = null*/ ): Template
50+ protected function createTemplate (string $ class = null ): Template
5151 {
52- $ class = func_num_args () // back compatibility
53- ? func_get_arg (0 )
54- : $ this ->formatTemplateClass ();
52+ $ class ??= $ this ->formatTemplateClass ();
5553 $ templateFactory = $ this ->templateFactory ?? $ this ->getPresenter ()->getTemplateFactory ();
5654 return $ templateFactory ->createTemplate ($ this , $ class );
5755 }
Original file line number Diff line number Diff line change @@ -513,11 +513,9 @@ public static function formatRenderMethod(string $view): string
513513 }
514514
515515
516- protected function createTemplate (/* string $class = null*/ ): Template
516+ protected function createTemplate (string $ class = null ): Template
517517 {
518- $ class = func_num_args () // back compatibility
519- ? func_get_arg (0 )
520- : $ this ->formatTemplateClass ();
518+ $ class ??= $ this ->formatTemplateClass ();
521519 return $ this ->getTemplateFactory ()->createTemplate ($ this , $ class );
522520 }
523521
You can’t perform that action at this time.
0 commit comments