File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818use Rector \CodeQuality \Rector \FuncCall \SimplifyRegexPatternRector ;
1919use Rector \CodeQuality \Rector \FuncCall \SimplifyStrposLowerRector ;
2020use Rector \CodeQuality \Rector \FuncCall \SingleInArrayToCompareRector ;
21- use Rector \CodingStyle \Rector \FuncCall \VersionCompareFuncCallToConstantRector ;
2221use Rector \CodeQuality \Rector \FunctionLike \SimplifyUselessVariableRector ;
2322use Rector \CodeQuality \Rector \If_ \CombineIfRector ;
2423use Rector \CodeQuality \Rector \If_ \ShortenElseIfRector ;
2928use Rector \CodingStyle \Rector \ClassMethod \FuncGetArgsToVariadicParamRector ;
3029use Rector \CodingStyle \Rector \ClassMethod \MakeInheritedMethodVisibilitySameAsParentRector ;
3130use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
31+ use Rector \CodingStyle \Rector \FuncCall \VersionCompareFuncCallToConstantRector ;
3232use Rector \Config \RectorConfig ;
3333use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedConstructorParamRector ;
3434use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPrivateMethodRector ;
Original file line number Diff line number Diff line change @@ -346,11 +346,7 @@ public function sanitizeFilename(string $filename): string
346346 );
347347 }
348348 if ($ result === false ) {
349- if (PHP_VERSION_ID >= 80000 ) {
350- $ message = preg_last_error_msg ();
351- } else {
352- $ message = 'Regex error. error code: ' . preg_last_error ();
353- }
349+ $ message = PHP_VERSION_ID >= 80000 ? preg_last_error_msg () : 'Regex error. error code: ' . preg_last_error ();
354350
355351 throw new RuntimeException ($ message . '. filename: " ' . $ filename . '" ' );
356352 }
You can’t perform that action at this time.
0 commit comments