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 1515use Rector \CodeQuality \Rector \Empty_ \SimplifyEmptyCheckOnEmptyArrayRector ;
1616use Rector \CodeQuality \Rector \Expression \InlineIfToExplicitIfRector ;
1717use Rector \CodeQuality \Rector \Foreach_ \UnusedForeachValueToArrayKeysRector ;
18- use Rector \CodeQuality \Rector \FuncCall \ChangeArrayPushToArrayAssignRector ;
1918use Rector \CodeQuality \Rector \FuncCall \CompactToVariablesRector ;
2019use Rector \CodeQuality \Rector \FunctionLike \SimplifyUselessVariableRector ;
2120use Rector \CodeQuality \Rector \Ternary \TernaryEmptyArrayArrayDimFetchToCoalesceRector ;
183182 InlineIfToExplicitIfRector::class,
184183 PreparedValueToEarlyReturnRector::class,
185184 UnusedForeachValueToArrayKeysRector::class,
186- ChangeArrayPushToArrayAssignRector::class,
187185 RemoveErrorSuppressInTryCatchStmtsRector::class,
188186 FuncGetArgsToVariadicParamRector::class,
189187 MakeInheritedMethodVisibilitySameAsParentRector::class,
204202 // keep '\\' prefix string on string '\Foo\Bar'
205203 StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true ,
206204 ])
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)
6262 {
6363 $ key = static ::validateKey ($ key , $ this ->prefix );
6464
65- return array_key_exists ( $ key , $ this ->cache ) ? $ this -> cache [$ key ] : null ;
65+ return $ this ->cache [$ key ] ?? null ;
6666 }
6767
6868 /**
You can’t perform that action at this time.
0 commit comments