From 3f7c5d23dca03b57cb3d66e9b5c7831cece3d5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 10 Oct 2024 11:41:25 +0200 Subject: [PATCH] Add return type hint to getTargets method The getTargets method now explicitly returns an array, enhancing type safety and readability. This change ensures that the return type is clear to any developers interacting with this method. --- .../Workflow/Validator/EntityWorkflowCreation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Workflow/Validator/EntityWorkflowCreation.php b/src/Bundle/ChillMainBundle/Workflow/Validator/EntityWorkflowCreation.php index 34f024884..b2ec671ef 100644 --- a/src/Bundle/ChillMainBundle/Workflow/Validator/EntityWorkflowCreation.php +++ b/src/Bundle/ChillMainBundle/Workflow/Validator/EntityWorkflowCreation.php @@ -27,7 +27,7 @@ class EntityWorkflowCreation extends \Symfony\Component\Validator\Constraint public string $messageWorkflowNotAvailable = 'Workflow is not valid'; - public function getTargets() + public function getTargets(): array { return [self::CLASS_CONSTRAINT]; }