Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5cabe45

Browse files
minor#58493 [Validator] Enhance PHPDoc onConstraint::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 | MITProvides better static analysis on constraints.Commits-------5492bf4 [Validator] Enhance PHPDoc on `Constraint::getTargets()`
2 parents25cd4e5 +5492bf4 commit5cabe45

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
publicfunctiongetTargets():string|array
287284
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp