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