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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Rector\Tests\TypeDeclarationDocblocks\Rector\Class_\ClassMethodArrayDocblockParamFromLocalCallsRector\Fixture;

final class SkipMixed
{
public function go(array $mixed)
{
$this->run($mixed);
}

private function run(array $items)
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
use PHPStan\Type\MixedType;
use PHPStan\Type\Type;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
use Rector\PhpParser\NodeFinder\LocalMethodCallFinder;
Expand Down Expand Up @@ -111,6 +112,9 @@ public function refactor(Node $node): ?Node
if (! $resolvedParameterType instanceof Type) {
continue;
}
if ($resolvedParameterType instanceof MixedType) {
continue;
}

$hasClassMethodChanged = $this->nodeDocblockTypeDecorator->decorateGenericIterableParamType(
$resolvedParameterType,
Expand Down
Loading