Skip to content

Commit 60e0795

Browse files
committed
Updated Rector to commit fdbcc40e816caada2a14dc32ecc982b6c9a5bea5
rectorphp/rector-src@fdbcc40 UseIdenticalOverEqualWithSameTypeRector should not trust phpdoc (#6880)
1 parent 1de5748 commit 60e0795

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
@@ -4,6 +4,7 @@
44
namespace Rector\CodeQuality\Rector\Equal;
55

66
use PhpParser\Node;
7+
use PhpParser\Node\Expr\ArrayDimFetch;
78
use PhpParser\Node\Expr\BinaryOp\Equal;
89
use PhpParser\Node\Expr\BinaryOp\Identical;
910
use PhpParser\Node\Expr\BinaryOp\NotEqual;
@@ -53,6 +54,9 @@ public function getNodeTypes() : array
5354
*/
5455
public function refactor(Node $node) : ?Node
5556
{
57+
if ($node->left instanceof ArrayDimFetch || $node->right instanceof ArrayDimFetch) {
58+
return null;
59+
}
5660
$leftStaticType = $this->nodeTypeResolver->getNativeType($node->left);
5761
$rightStaticType = $this->nodeTypeResolver->getNativeType($node->right);
5862
// objects can be different by content

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 = 'c6df7f5f25ba5e52b06077f905b30d054dd76776';
22+
public const PACKAGE_VERSION = 'fdbcc40e816caada2a14dc32ecc982b6c9a5bea5';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-05-05 19:13:48';
27+
public const RELEASE_DATE = '2025-05-05 19:16:31';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)