Skip to content

Commit 2f18f17

Browse files
committed
Updated Rector to commit 33655134e27ea56c99a01e159425d1f358c0b4a0
rectorphp/rector-src@3365513 Remove direct Name support from getType(), as name is never a type (#6089)
1 parent ed54ba9 commit 2f18f17

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '9fa1da9262ceb06912363981629a03e8666e9bce';
22+
public const PACKAGE_VERSION = '33655134e27ea56c99a01e159425d1f358c0b4a0';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-06-30 19:49:05';
27+
public const RELEASE_DATE = '2024-06-30 20:01:23';
2828
/**
2929
* @var int
3030
*/

src/NodeTypeResolver/NodeTypeResolver.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
use PhpParser\Node\Expr\NullsafeMethodCall;
1414
use PhpParser\Node\Expr\StaticCall;
1515
use PhpParser\Node\Expr\Ternary;
16-
use PhpParser\Node\Name;
17-
use PhpParser\Node\Name\FullyQualified;
1816
use PhpParser\Node\NullableType;
1917
use PhpParser\Node\Scalar\String_;
2018
use PhpParser\Node\UnionType as NodeUnionType;
@@ -143,9 +141,6 @@ public function isObjectType(Node $node, ObjectType $requiredObjectType) : bool
143141
}
144142
public function getType(Node $node) : Type
145143
{
146-
if ($node instanceof Name && $node->hasAttribute(AttributeKey::NAMESPACED_NAME)) {
147-
return $this->getType(new FullyQualified($node->getAttribute(AttributeKey::NAMESPACED_NAME)));
148-
}
149144
if ($node instanceof NullableType) {
150145
$type = $this->getType($node->type);
151146
if (!$type instanceof MixedType) {

0 commit comments

Comments
 (0)