mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
remove SimplifyRegexPatternRector from rule()
This commit is contained in:
parent
260c379681
commit
48f36ef37a
@ -18,7 +18,6 @@ use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
|
||||
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
|
||||
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
|
||||
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
|
||||
@ -213,7 +212,6 @@ return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class);
|
||||
$rectorConfig->rule(UnnecessaryTernaryExpressionRector::class);
|
||||
$rectorConfig->rule(RemoveErrorSuppressInTryCatchStmtsRector::class);
|
||||
$rectorConfig->rule(SimplifyRegexPatternRector::class);
|
||||
$rectorConfig->rule(FuncGetArgsToVariadicParamRector::class);
|
||||
$rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class);
|
||||
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);
|
||||
|
@ -58,7 +58,7 @@ final class GetFieldDataTestCase extends AbstractGetFieldDataTestCase
|
||||
$fields = $this->db->getFieldData($this->table);
|
||||
|
||||
$idDefault = $this->getFieldMetaData('id', $this->table)->default;
|
||||
$this->assertMatchesRegularExpression('/"ORACLE"."ISEQ\$\$_\d+".nextval/', $idDefault);
|
||||
$this->assertMatchesRegularExpression('/"ORACLE"."ISEQ\$\$_[0-9]+".nextval/', $idDefault);
|
||||
|
||||
$expected = [
|
||||
(object) [
|
||||
|
@ -49,6 +49,6 @@ final class RawSqlTest extends CIUnitTestCase
|
||||
|
||||
$key = $rawSql->getBindingKey();
|
||||
|
||||
$this->assertMatchesRegularExpression('/\ARawSql\d+\z/', $key);
|
||||
$this->assertMatchesRegularExpression('/\ARawSql[0-9]+\z/', $key);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user