Skip to content

Commit 48f36ef

Browse files
committed
remove SimplifyRegexPatternRector from rule()
1 parent 260c379 commit 48f36ef

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

rector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
1919
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
2020
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
21-
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector;
2221
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
2322
use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
2423
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
@@ -213,7 +212,6 @@
213212
$rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class);
214213
$rectorConfig->rule(UnnecessaryTernaryExpressionRector::class);
215214
$rectorConfig->rule(RemoveErrorSuppressInTryCatchStmtsRector::class);
216-
$rectorConfig->rule(SimplifyRegexPatternRector::class);
217215
$rectorConfig->rule(FuncGetArgsToVariadicParamRector::class);
218216
$rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class);
219217
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);

tests/system/Database/Live/OCI8/GetFieldDataTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testGetFieldDataDefault(): void
5858
$fields = $this->db->getFieldData($this->table);
5959

6060
$idDefault = $this->getFieldMetaData('id', $this->table)->default;
61-
$this->assertMatchesRegularExpression('/"ORACLE"."ISEQ\$\$_\d+".nextval/', $idDefault);
61+
$this->assertMatchesRegularExpression('/"ORACLE"."ISEQ\$\$_[0-9]+".nextval/', $idDefault);
6262

6363
$expected = [
6464
(object) [

tests/system/Database/RawSqlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public function testGetBindingKey(): void
4949

5050
$key = $rawSql->getBindingKey();
5151

52-
$this->assertMatchesRegularExpression('/\ARawSql\d+\z/', $key);
52+
$this->assertMatchesRegularExpression('/\ARawSql[0-9]+\z/', $key);
5353
}
5454
}

0 commit comments

Comments
 (0)