Add return type for getTargets() method in validator

Ensure the `getTargets()` method specifies its return type for better code clarity and type safety. This update aligns with modern PHP practices and improves maintainability.
This commit is contained in:
Julien Fastré 2025-03-12 17:41:28 +01:00
parent 0a21fada42
commit a789bf5e1c
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -18,6 +18,9 @@ class ConfidentialCourseMustHaveReferrer extends Constraint
{ {
public string $message = 'A confidential parcours must have a referrer'; public string $message = 'A confidential parcours must have a referrer';
/**
* @return array<string>
*/
public function getTargets(): array public function getTargets(): array
{ {
return [self::CLASS_CONSTRAINT]; return [self::CLASS_CONSTRAINT];