File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,11 +153,13 @@ private function resolveHelperFunction(array|callable|string|Helper $function):
153153
154154 // 4b. class method as array
155155 // 4c. class method as initialized array
156+ /* @phpstan-ignore identical.alwaysTrue */
156157 if (is_array ($ function ) && count ($ function ) === 2 ) {
157158 [$ className , $ methodName ] = $ function ;
158159 }
159160
160161 // Early return if either class name or method name cannot be resolved
162+ /* @phpstan-ignore identical.alwaysFalse */
161163 if ($ className === null || $ methodName === null ) {
162164 throw Exception \InvalidHelperException::forUnsupportedType ($ function );
163165 }
@@ -172,6 +174,7 @@ private function resolveHelperFunction(array|callable|string|Helper $function):
172174 }
173175
174176 // Early return if method is invalid
177+ /* @phpstan-ignore function.alreadyNarrowedType */
175178 if (!is_string ($ methodName )) {
176179 throw Exception \InvalidHelperException::forUnsupportedType ($ function );
177180 }
You can’t perform that action at this time.
0 commit comments