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
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

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

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

final class SkipMixedFromParamArray extends TestCase
{
#[DataProvider('provideData')]
public function test(array $names): void
{
}

public static function provideData()
{
return [
[$item],
[$item2],
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ public function refactor(Node $node): ?Node
continue;
}

if ($parameterType instanceof MixedType) {
continue;
}

$generalizedParameterType = $this->typeNormalizer->generalizeConstantTypes($parameterType);

$parameterTypeNode = $this->staticTypeMapper->mapPHPStanTypeToPHPStanPhpDocTypeNode(
Expand Down
Loading