8000 minor #58493 [Validator] Enhance PHPDoc on `Constraint::getTargets()`… · symfony/symfony@5cabe45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cabe45

Browse files
minor #58493 [Validator] Enhance PHPDoc on Constraint::getTargets() (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [Validator] Enhance PHPDoc on `Constraint::getTargets()` | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Provides better static analysis on constraints. Commits ------- 5492bf4 [Validator] Enhance PHPDoc on `Constraint::getTargets()`
2 parents 25cd4e5 + 5492bf4 commit 5cabe45

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)
0