Skip to content

Commit 2cec472

Browse files
committed
Updated Rector to commit db56ff55a354dd5081e93fbfcd34b59e99bb9b3e
rectorphp/rector-src@db56ff5 [CodeQuality] Skip union type on UseIdenticalOverEqualWithSameTypeRector (#7975)
1 parent 865e74d commit 2cec472

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

rules/CodeQuality/Rector/Equal/UseIdenticalOverEqualWithSameTypeRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use PHPStan\Type\StringType;
1818
use PHPStan\Type\Type;
1919
use PHPStan\Type\TypeTraverser;
20+
use PHPStan\Type\UnionType;
2021
use Rector\NodeTypeResolver\Node\AttributeKey;
2122
use Rector\Rector\AbstractRector;
2223
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
@@ -79,6 +80,9 @@ public function refactor(Node $node): ?Node
7980
if (!$normalizedLeftType->equals($normalizedRightType)) {
8081
return null;
8182
}
83+
if ($normalizedLeftType instanceof UnionType) {
84+
return null;
85+
}
8286
return $this->processIdenticalOrNotIdentical($node);
8387
}
8488
private function hasObjectType(Type $type): bool

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 = 'c7a0b7db54deb0f98863d7cbf87c448f8d7249f7';
22+
public const PACKAGE_VERSION = 'db56ff55a354dd5081e93fbfcd34b59e99bb9b3e';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-05-01 20:41:14';
27+
public const RELEASE_DATE = '2026-05-01 21:21:28';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)