Skip to content

Commit 2cef506

Browse files
committed
Updated Rector to commit fa01afc398af9e086726c53e473d37ed15255fb1
rectorphp/rector-src@fa01afc Fix crash on ExactCompareFactory::createBooleanAnd/Or (#7031)
1 parent bfd8fbc commit 2cef506

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

rules/Strict/NodeFactory/ExactCompareFactory.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ private function createBooleanOr(array $compareExprs) : ?BooleanOr
161161
}
162162
$truthyExpr = new BooleanOr($truthyExpr, $compareExpr);
163163
}
164-
/** @var BooleanOr $truthyExpr */
164+
if (!$truthyExpr instanceof BooleanOr) {
165+
return null;
166+
}
165167
return $truthyExpr;
166168
}
167169
/**
@@ -179,7 +181,9 @@ private function createBooleanAnd(array $compareExprs) : ?BooleanAnd
179181
}
180182
$truthyExpr = new BooleanAnd($truthyExpr, $compareExpr);
181183
}
182-
/** @var BooleanAnd $truthyExpr */
184+
if (!$truthyExpr instanceof BooleanAnd) {
185+
return null;
186+
}
183187
return $truthyExpr;
184188
}
185189
/**

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 = '0f57b9f5d406115edb5c8e3450b30ec780972fe7';
22+
public const PACKAGE_VERSION = 'fa01afc398af9e086726c53e473d37ed15255fb1';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-06-30 03:46:13';
27+
public const RELEASE_DATE = '2025-06-30 10:57:32';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)