Skip to content

Commit 76c3c61

Browse files
committed
[BUGFIX] Fix type annotation in the GeneralUtility stub
For variable arguments, the type annotation needs to match the type of the single arguments, not an array of the single arguments. This change parallels that in the TYPO3 Core: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78080
1 parent 822afd2 commit 76c3c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/GeneralUtility.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class GeneralUtility
66
/**
77
* @template T of object
88
* @phpstan-param class-string<T> $className
9-
* @phpstan-param array<int, mixed> $constructorArguments
9+
* @phpstan-param mixed $constructorArguments
1010
* @phpstan-return T
1111
*/
1212
public static function makeInstance($className, ...$constructorArguments);

0 commit comments

Comments
 (0)