File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 15
15
use Rector \CodeQuality \Rector \Empty_ \SimplifyEmptyCheckOnEmptyArrayRector ;
16
16
use Rector \CodeQuality \Rector \Expression \InlineIfToExplicitIfRector ;
17
17
use Rector \CodeQuality \Rector \Foreach_ \UnusedForeachValueToArrayKeysRector ;
18
- use Rector \CodeQuality \Rector \FuncCall \ChangeArrayPushToArrayAssignRector ;
19
18
use Rector \CodeQuality \Rector \FuncCall \CompactToVariablesRector ;
20
19
use Rector \CodeQuality \Rector \FunctionLike \SimplifyUselessVariableRector ;
21
20
use Rector \CodeQuality \Rector \Ternary \TernaryEmptyArrayArrayDimFetchToCoalesceRector ;
183
182
InlineIfToExplicitIfRector::class,
184
183
PreparedValueToEarlyReturnRector::class,
185
184
UnusedForeachValueToArrayKeysRector::class,
186
- ChangeArrayPushToArrayAssignRector::class,
187
185
RemoveErrorSuppressInTryCatchStmtsRector::class,
188
186
FuncGetArgsToVariadicParamRector::class,
189
187
MakeInheritedMethodVisibilitySameAsParentRector::class,
204
202
// keep '\\' prefix string on string '\Foo\Bar'
205
203
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true ,
206
204
])
207
- ->withCodeQualityLevel (34 );
205
+ ->withCodeQualityLevel (40 );
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function get(string $key)
62
62
{
63
63
$ key = static ::validateKey ($ key , $ this ->prefix );
64
64
65
- return array_key_exists ( $ key , $ this ->cache ) ? $ this -> cache [$ key ] : null ;
65
+ return $ this ->cache [$ key ] ?? null ;
66
66
}
67
67
68
68
/**
You can’t perform that action at this time.
0 commit comments