@@ -85,7 +85,7 @@ public function convertAsForm(string $options, string $formType): string
85
85
* Print "trans" tag for string $str with parameters $parameters
86
86
* for catalog $catalog.
87
87
*/
88
- public function getEchoTrans (string $ str , array $ parameters = [], string $ catalog = 'Admingenerator ' , bool |string $ escape = null ): string
88
+ public function getEchoTrans (string $ str , array $ parameters = [], string $ catalog = 'Admingenerator ' , bool |string | null $ escape = null ): string
89
89
{
90
90
$ transParameters = '{} ' ;
91
91
$ bag_parameters = [];
@@ -120,7 +120,7 @@ public function getEchoTrans(string $str, array $parameters = [], string $catalo
120
120
/**
121
121
* Print "echo tag with path call" to the path $path with params $params.
122
122
*/
123
- public function getEchoPath (string $ path , string $ params = null , array |string $ filters = null ): string
123
+ public function getEchoPath (string $ path , string $ params = null , array |string | null $ filters = null ): string
124
124
{
125
125
if (null === $ params ) {
126
126
return (null === $ filters )
@@ -152,7 +152,7 @@ public function getEchoPath(string $path, string $params = null, array|string $f
152
152
* Print "if" tag with condition to is_expr_granted('$credentials')
153
153
* If $modelName is not null, append the $modelName to the function call.
154
154
*/
155
- public function getEchoIfGranted (string $ credentials , string $ modelName = null ): string
155
+ public function getEchoIfGranted (string $ credentials , ? string $ modelName = null ): string
156
156
{
157
157
if ('AdmingenAllowed ' == $ credentials ) {
158
158
return "{% if (true) %} " ;
0 commit comments