mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 00:24:59 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -73,20 +73,11 @@ class OverlapsI extends FunctionNode
|
||||
|
||||
protected function makeCase($sqlWalker, $part, string $position): string
|
||||
{
|
||||
switch ($position) {
|
||||
case 'start':
|
||||
$p = '-infinity';
|
||||
|
||||
break;
|
||||
|
||||
case 'end':
|
||||
$p = 'infinity';
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Exception('Unexpected position value.');
|
||||
}
|
||||
$p = match ($position) {
|
||||
'start' => '-infinity',
|
||||
'end' => 'infinity',
|
||||
default => throw new Exception('Unexpected position value.'),
|
||||
};
|
||||
|
||||
if ($part instanceof PathExpression) {
|
||||
return sprintf(
|
||||
|
Reference in New Issue
Block a user