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.
This commit is contained in:
2024-10-10 11:41:25 +02:00
parent 78445f0d65
commit 3f7c5d23dc

View File

@@ -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];
}