Skip to content

Commit c68097b

Browse files
committed
Updated Rector to commit 4eeaf7175299aa4d559a1fe83a11d4081e8291f1
rectorphp/rector-src@4eeaf71 [Php80] Do not change to match(true) on defined case cond on ChangeSwitchToMatchRector (#6962)
1 parent 48a35f8 commit c68097b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rules/Php80/Rector/Switch_/ChangeSwitchToMatchRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function mirrorDynamicBoolExpr(Match_ $match) : void
201201
}
202202
foreach ($arm->conds as $cond) {
203203
$type = $this->nodeTypeResolver->getNativeType($cond);
204-
if (!$this->exprAnalyzer->isDynamicExpr($cond) || !$type->isBoolean()->yes()) {
204+
if (!$this->exprAnalyzer->isDynamicExpr($cond) || !$type->isBoolean()->yes() || \is_bool($this->valueResolver->getValue($cond))) {
205205
// return early here, as condition is mixed
206206
// we need another real use case for mixed conditions of dynamic + non-dynamic case expr
207207
return;

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 = 'dd217d9d2a02a69eb55aa9a5f66f3f6914d74b2b';
22+
public const PACKAGE_VERSION = '4eeaf7175299aa4d559a1fe83a11d4081e8291f1';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-06-08 13:08:47';
27+
public const RELEASE_DATE = '2025-06-08 16:43:02';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)