Updated Rector to commit c2cdcd3922d06924acfbf4a792eec61dccbee03e

c2cdcd3922 [CodeQuality] Fix logic start with [^ on SimplifyRegexPatternRector to ensure only skip on this case (#5495)
This commit is contained in:
Tomas Votruba 2024-01-23 16:37:59 +00:00
parent aa518bb95d
commit cd34331aa7
2 changed files with 3 additions and 4 deletions

View File

@ -73,8 +73,7 @@ CODE_SAMPLE
if ($originalValue === $simplifiedValue) {
continue;
}
$countSqureOpenBracket = \substr_count($simplifiedValue, '[');
if ($countSqureOpenBracket % 2 === 1) {
if (\strpos($originalValue, '[^' . $complexPattern) !== \false) {
continue;
}
$node->value = $simplifiedValue;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'dd02659ec90240c9452ccb86e48fb53879572935';
public const PACKAGE_VERSION = 'c2cdcd3922d06924acfbf4a792eec61dccbee03e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-01-23 22:50:30';
public const RELEASE_DATE = '2024-01-23 16:35:33';
/**
* @var int
*/