Skip to content

Commit

Permalink
Updated Rector to commit 33655134e27ea56c99a01e159425d1f358c0b4a0
Browse files Browse the repository at this point in the history
rectorphp/rector-src@3365513 Remove direct Name support from getType(), as name is never a type (#6089)
  • Loading branch information
TomasVotruba committed Jun 30, 2024
1 parent ed54ba9 commit 2f18f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
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 = '9fa1da9262ceb06912363981629a03e8666e9bce';
public const PACKAGE_VERSION = '33655134e27ea56c99a01e159425d1f358c0b4a0';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-06-30 19:49:05';
public const RELEASE_DATE = '2024-06-30 20:01:23';
/**
* @var int
*/
Expand Down
5 changes: 0 additions & 5 deletions src/NodeTypeResolver/NodeTypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
use PhpParser\Node\Expr\NullsafeMethodCall;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Expr\Ternary;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\NullableType;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\UnionType as NodeUnionType;
Expand Down Expand Up @@ -143,9 +141,6 @@ public function isObjectType(Node $node, ObjectType $requiredObjectType) : bool
}
public function getType(Node $node) : Type
{
if ($node instanceof Name && $node->hasAttribute(AttributeKey::NAMESPACED_NAME)) {
return $this->getType(new FullyQualified($node->getAttribute(AttributeKey::NAMESPACED_NAME)));
}
if ($node instanceof NullableType) {
$type = $this->getType($node->type);
if (!$type instanceof MixedType) {
Expand Down

0 comments on commit 2f18f17

Please sign in to comment.