mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 08:35:00 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -22,16 +22,12 @@ use function count;
|
||||
|
||||
class EntityWorkflowCreationValidator extends \Symfony\Component\Validator\ConstraintValidator
|
||||
{
|
||||
private EntityWorkflowManager $entityWorkflowManager;
|
||||
|
||||
public function __construct(EntityWorkflowManager $entityWorkflowManager)
|
||||
public function __construct(private EntityWorkflowManager $entityWorkflowManager)
|
||||
{
|
||||
$this->entityWorkflowManager = $entityWorkflowManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param EntityWorkflow $value
|
||||
* @param Constraint|EntityWorkflowCreation $constraint
|
||||
*/
|
||||
public function validate($value, Constraint $constraint)
|
||||
{
|
||||
@@ -45,7 +41,7 @@ class EntityWorkflowCreationValidator extends \Symfony\Component\Validator\Const
|
||||
|
||||
try {
|
||||
$handler = $this->entityWorkflowManager->getHandler($value);
|
||||
} catch (HandlerNotFoundException $e) {
|
||||
} catch (HandlerNotFoundException) {
|
||||
$this->context->buildViolation($constraint->messageHandlerNotFound)
|
||||
->addViolation();
|
||||
|
||||
|
@@ -22,7 +22,6 @@ class StepDestValidValidator extends ConstraintValidator
|
||||
{
|
||||
/**
|
||||
* @param EntityWorkflowStep $value
|
||||
* @param Constraint|StepDestValid $constraint
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
Reference in New Issue
Block a user