Updated Rector to commit 6525345f4d3e594311a7186982087ec17ef8b0ee

6525345f4d [CodeQuality] Fix tautology transformation on identical check on SimplifyTautologyTernaryRector (#5854)
This commit is contained in:
Tomas Votruba 2024-05-02 08:08:51 +00:00
parent 029097acda
commit 346b5723b4
2 changed files with 3 additions and 3 deletions

View File

@ -53,6 +53,6 @@ final class SimplifyTautologyTernaryRector extends AbstractRector
if (!$twoNodeMatch instanceof TwoNodeMatch) {
return null;
}
return $node->if;
return $node->cond instanceof NotIdentical ? $node->if : $node->else;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'c7d2ca3f1f2b9153fb05f0ad974b1d4a403be9c3';
public const PACKAGE_VERSION = '6525345f4d3e594311a7186982087ec17ef8b0ee';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-02 14:36:31';
public const RELEASE_DATE = '2024-05-02 15:04:33';
/**
* @var int
*/