File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use Rector \Config \RectorConfig ;
43use Rector \CodeQuality \Rector \BooleanAnd \SimplifyEmptyArrayCheckRector ;
54use Rector \CodeQuality \Rector \Expression \InlineIfToExplicitIfRector ;
65use Rector \CodeQuality \Rector \For_ \ForToForeachRector ;
1817use Rector \CodingStyle \Rector \ClassMethod \FuncGetArgsToVariadicParamRector ;
1918use Rector \CodingStyle \Rector \ClassMethod \MakeInheritedMethodVisibilitySameAsParentRector ;
2019use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
20+ use Rector \Config \RectorConfig ;
2121use Rector \Core \ValueObject \PhpVersion ;
2222use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
2323use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
24+ use Rector \DeadCode \Rector \StmtsAwareInterface \RemoveJustPropertyFetchForAssignRector ;
2425use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
2526use Rector \EarlyReturn \Rector \If_ \ChangeIfElseValueAssignToEarlyReturnRector ;
2627use Rector \EarlyReturn \Rector \If_ \RemoveAlwaysElseRector ;
9091
9192 // May be uninitialized on purpose
9293 AddDefaultValueForUndefinedVariableRector::class,
94+
95+ // See https://github.com/codeigniter4/shield/issues/228
96+ RemoveJustPropertyFetchForAssignRector::class => [
97+ __DIR__ . '/src/Models/UserModel.php ' ,
98+ ],
9399 ]);
94100 $ rectorConfig ->rule (SimplifyUselessVariableRector::class);
95101 $ rectorConfig ->rule (RemoveAlwaysElseRector::class);
You can’t perform that action at this time.
0 commit comments