Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ private function processParams(ClassMethod|Function_|Closure $node): ?Node
}

/**
* @template TNode of Closure|ClassMethod|Function_
* @param TNode $node
* @param ClosureUse[]|Param[] $array
* @return TNode|null
*/
private function cleanTrailingComma(Closure|ClassMethod|Function_ $node, array $array): ?Node
private function cleanTrailingComma(Closure|ClassMethod|Function_ $node, array $array): Closure|ClassMethod|Function_|null
{
$lastPosition = array_key_last($array);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ public function refactor(Node $node): ?Node
}

/**
* @template TNode of MethodCall|StaticCall|New_|FuncCall
* @param TNode $node
* @param Arg[] $args
* @return TNode|null
*/
private function removeNamedArguments(MethodCall|StaticCall|New_|FuncCall $node, array $args): ?Node
private function removeNamedArguments(MethodCall|StaticCall|New_|FuncCall $node, array $args): FuncCall|MethodCall|New_|StaticCall|null
{
if ($node instanceof New_) {
$functionLikeReflection = $this->reflectionResolver->resolveMethodReflectionFromNew($node);
Expand Down
Loading