Skip to content

Commit 8f4d4cf

Browse files
Merge pull request #579 from CPS-IT/renovate/lock-file-maintenance
[TASK] Update all dependencies
2 parents e2b92da + f913e86 commit 8f4d4cf

2 files changed

Lines changed: 66 additions & 62 deletions

File tree

Classes/Renderer/Helper/HelperRegistry.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)