Skip to content

Commit 260c379

Browse files
committed
chore: Clean up Rector skip config on SimplifyRegexPatternRector and RemoveUnusedPromotedPropertyRector
1 parent 801b4f3 commit 260c379

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

rector.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
use Rector\Config\RectorConfig;
3737
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector;
3838
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
39-
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
4039
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
4140
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
4241
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
@@ -107,11 +106,6 @@
107106

108107
YieldDataProviderRector::class,
109108

110-
RemoveUnusedPromotedPropertyRector::class => [
111-
// Bug in rector 1.0.0. See https://github.com/rectorphp/rector-src/pull/5573
112-
__DIR__ . '/tests/_support/Entity/CustomUser.php',
113-
],
114-
115109
RemoveUnusedPrivateMethodRector::class => [
116110
// private method called via getPrivateMethodInvoker
117111
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
@@ -155,8 +149,6 @@
155149
// use mt_rand instead of random_int on purpose on non-cryptographically random
156150
RandomFunctionRector::class,
157151

158-
SimplifyRegexPatternRector::class,
159-
160152
// PHP 8.0 features but cause breaking changes
161153
ClassPropertyAssignToConstructorPromotionRector::class => [
162154
__DIR__ . '/system/Database/BaseResult.php',

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\$\$_[0-9]+".nextval/', $idDefault);
61+
$this->assertMatchesRegularExpression('/"ORACLE"."ISEQ\$\$_\d+".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[0-9]+\z/', $key);
52+
$this->assertMatchesRegularExpression('/\ARawSql\d+\z/', $key);
5353
}
5454
}

0 commit comments

Comments
 (0)