File tree Expand file tree Collapse file tree
rules/CodeQuality/Rector/Equal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44namespace Rector \CodeQuality \Rector \Equal ;
55
66use PhpParser \Node ;
7+ use PhpParser \Node \Expr \ArrayDimFetch ;
78use PhpParser \Node \Expr \BinaryOp \Equal ;
89use PhpParser \Node \Expr \BinaryOp \Identical ;
910use 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
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments