File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 36
36
use Rector \Config \RectorConfig ;
37
37
use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedConstructorParamRector ;
38
38
use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPrivateMethodRector ;
39
- use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
40
39
use Rector \DeadCode \Rector \If_ \UnwrapFutureCompatibleIfPhpVersionRector ;
41
40
use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
42
41
use Rector \EarlyReturn \Rector \If_ \ChangeIfElseValueAssignToEarlyReturnRector ;
107
106
108
107
YieldDataProviderRector::class,
109
108
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
-
115
109
RemoveUnusedPrivateMethodRector::class => [
116
110
// private method called via getPrivateMethodInvoker
117
111
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php ' ,
155
149
// use mt_rand instead of random_int on purpose on non-cryptographically random
156
150
RandomFunctionRector::class,
157
151
158
- SimplifyRegexPatternRector::class,
159
-
160
152
// PHP 8.0 features but cause breaking changes
161
153
ClassPropertyAssignToConstructorPromotionRector::class => [
162
154
__DIR__ . '/system/Database/BaseResult.php ' ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function testGetFieldDataDefault(): void
58
58
$ fields = $ this ->db ->getFieldData ($ this ->table );
59
59
60
60
$ idDefault = $ this ->getFieldMetaData ('id ' , $ this ->table )->default ;
61
- $ this ->assertMatchesRegularExpression ('/"ORACLE"."ISEQ\$\$_[0-9] +".nextval/ ' , $ idDefault );
61
+ $ this ->assertMatchesRegularExpression ('/"ORACLE"."ISEQ\$\$_\d +".nextval/ ' , $ idDefault );
62
62
63
63
$ expected = [
64
64
(object ) [
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ public function testGetBindingKey(): void
49
49
50
50
$ key = $ rawSql ->getBindingKey ();
51
51
52
- $ this ->assertMatchesRegularExpression ('/\ARawSql[0-9] +\z/ ' , $ key );
52
+ $ this ->assertMatchesRegularExpression ('/\ARawSql\d +\z/ ' , $ key );
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments