Skip to content

Commit ae55cbd

Browse files
authored
[TASK] Loosen PHPDoc type for Fluid namespaces (#1280)
Since a Fluid namespace does not necesarily refer to an existing class (e. g. "TYPO3Fluid\Fluid\ViewHelpers" is not a valid PHP class), the PHPDoc annotation is removed from `getNamespace()`. This enables comparing namespace strings with the result of `getNamespace()` without phpstan issues (e. g. "[...] will always evaluate to false").
1 parent fc82fac commit ae55cbd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Core/ViewHelper/ViewHelperResolverDelegateInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public function resolveViewHelperClassName(string $name): string;
3737
* Returns the PHP namespace this delegate has been registered for
3838
* This string representation will be used to restore the delegate
3939
* object from the cache in the future.
40-
*
41-
* @return class-string
4240
*/
4341
public function getNamespace(): string;
4442
}

0 commit comments

Comments
 (0)