Skip to content

Commit

Permalink
Updated Rector to commit aa7c931b47d3983290d2bec9916862099752e834
Browse files Browse the repository at this point in the history
rectorphp/rector-src@aa7c931 [Php80] Skip @template T as mixed on MixedTypeRector (#6399)
  • Loading branch information
TomasVotruba committed Oct 26, 2024
1 parent a9d7dc8 commit 6e934f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions rules/Php80/Rector/FunctionLike/MixedTypeRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use PhpParser\Node\Stmt\Function_;
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Type\Generic\TemplateType;
use PHPStan\Type\MixedType;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
Expand Down Expand Up @@ -140,6 +141,9 @@ private function refactorParamTypes($functionLike, PhpDocInfo $phpDocInfo) : voi
if (!$paramType instanceof MixedType) {
continue;
}
if ($paramType instanceof TemplateType) {
continue;
}
$this->hasChanged = \true;
$param->type = new Identifier('mixed');
if ($param->flags !== 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '6e1af0301b4dd51ed4709dc772a34a1fa169a339';
public const PACKAGE_VERSION = 'aa7c931b47d3983290d2bec9916862099752e834';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-26 18:37:02';
public const RELEASE_DATE = '2024-10-26 19:06:05';
/**
* @var int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface AnnotationToAttributeMapperInterface
*/
public function isCandidate($value) : bool;
/**
* @param mixed $value
* @param T $value
*/
public function map($value) : Expr;
}

0 comments on commit 6e934f1

Please sign in to comment.