Skip to content

Commit 5492bf4

Browse files
[Validator] Enhance PHPDoc on Constraint::getTargets()
1 parent b61db2f commit 5492bf4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Symfony/Component/Validator/Constraint.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,7 @@ public function validatedBy(): string
278278
* Returns whether the constraint can be put onto classes, properties or
279279
* both.
280280
*
281-
* This method should return one or more of the constants
282-
* Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
283-
*
284-
* @return string|string[] One or more constant values
281+
* @return self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT|array<self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT>
285282
*/
286283
public function getTargets(): string|array
287284
{

0 commit comments

Comments
 (0)