mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
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:
parent
aa518bb95d
commit
cd34331aa7
@ -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;
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user