mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
Updated Rector to commit 419480a0c415b5814065953e0ee8b90a785323a2
419480a0c4
[NodeTypeResolver] Clean up array check on NameTypeResolver (#5872)
This commit is contained in:
parent
b5b172a4b9
commit
c74c9ca74f
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'eea59bf3b2d52aa7553cfa3d36ea0de69221abe5';
|
||||
public const PACKAGE_VERSION = '419480a0c415b5814065953e0ee8b90a785323a2';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-05-13 14:20:35';
|
||||
public const RELEASE_DATE = '2024-05-13 17:34:46';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -8,7 +8,6 @@ use PhpParser\Node\Name;
|
|||
use PhpParser\Node\Name\FullyQualified;
|
||||
use PHPStan\Analyser\Scope;
|
||||
use PHPStan\Reflection\ClassReflection;
|
||||
use PHPStan\Type\ArrayType;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\ObjectType;
|
||||
use PHPStan\Type\Type;
|
||||
|
@ -39,9 +38,6 @@ final class NameTypeResolver implements NodeTypeResolverInterface
|
|||
return $this->resolveParent($node);
|
||||
}
|
||||
$fullyQualifiedName = $this->resolveFullyQualifiedName($node);
|
||||
if ($node->toString() === 'array') {
|
||||
return new ArrayType(new MixedType(), new MixedType());
|
||||
}
|
||||
return new ObjectType($fullyQualifiedName);
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,6 @@ use PHPStan\Reflection\ClassReflection;
|
|||
use PHPStan\Reflection\FunctionVariantWithPhpDocs;
|
||||
use PHPStan\Reflection\MethodReflection;
|
||||
use PHPStan\Reflection\ParametersAcceptorSelector;
|
||||
use PHPStan\Reflection\Php\PhpMethodReflection;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer;
|
||||
|
|
Loading…
Reference in New Issue
Block a user