Skip to content
Closed
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
@@ -0,0 +1,11 @@
<?php

namespace Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector\Fixture;

class SkipBareMixed
{
public function run(mixed $mixed): array
{
return [$mixed];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function changeReturnTypeNode(
}

public function changeParamTypeNode(
ClassMethod $functionLike,
ClassMethod $classMethod,
PhpDocInfo $phpDocInfo,
Param $param,
string $paramName,
Expand All @@ -129,7 +129,7 @@ public function changeParamTypeNode(
$phpDocInfo->addTagValueNode($paramTagValueNode);
}

$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($functionLike);
$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($classMethod);
}

public function changeReturnType(FunctionLike $functionLike, PhpDocInfo $phpDocInfo, Type $newType): bool
Expand Down
Loading