DX: add missing import for handling exception

This commit is contained in:
2022-10-06 23:04:33 +02:00
parent 17cdaf449e
commit 7e1d07f1ff
4 changed files with 3 additions and 310 deletions

View File

@@ -63,10 +63,8 @@ class ConfidentialAggregator implements AggregatorInterface
return $this->translator->trans('is not confidential');
default:
throw new LogicException(sprintf('The value %s is not valid', $value));
throw new \LogicException(sprintf('The value %s is not valid', $value));
}
return $value;
};
}

View File

@@ -63,10 +63,8 @@ class EmergencyAggregator implements AggregatorInterface
return $this->translator->trans('is not emergency');
default:
throw new LogicException(sprintf('The value %s is not valid', $value));
throw new \LogicException(sprintf('The value %s is not valid', $value));
}
return $value;
};
}

View File

@@ -95,7 +95,7 @@ final class StepAggregator implements AggregatorInterface //, FilterInterface
return 'Step';
default:
throw new LogicException(sprintf('The value %s is not valid', $value));
throw new \LogicException(sprintf('The value %s is not valid', $value));
}
};
}