mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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:
parent
78445f0d65
commit
3f7c5d23dc
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user