File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 18
18
use Rector \CodeQuality \Rector \FuncCall \SimplifyRegexPatternRector ;
19
19
use Rector \CodeQuality \Rector \FuncCall \SimplifyStrposLowerRector ;
20
20
use Rector \CodeQuality \Rector \FuncCall \SingleInArrayToCompareRector ;
21
- use Rector \CodingStyle \Rector \FuncCall \VersionCompareFuncCallToConstantRector ;
22
21
use Rector \CodeQuality \Rector \FunctionLike \SimplifyUselessVariableRector ;
23
22
use Rector \CodeQuality \Rector \If_ \CombineIfRector ;
24
23
use Rector \CodeQuality \Rector \If_ \ShortenElseIfRector ;
29
28
use Rector \CodingStyle \Rector \ClassMethod \FuncGetArgsToVariadicParamRector ;
30
29
use Rector \CodingStyle \Rector \ClassMethod \MakeInheritedMethodVisibilitySameAsParentRector ;
31
30
use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
31
+ use Rector \CodingStyle \Rector \FuncCall \VersionCompareFuncCallToConstantRector ;
32
32
use Rector \Config \RectorConfig ;
33
33
use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedConstructorParamRector ;
34
34
use 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
346
346
);
347
347
}
348
348
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 ();
354
350
355
351
throw new RuntimeException ($ message . '. filename: " ' . $ filename . '" ' );
356
352
}
You can’t perform that action at this time.
0 commit comments