Skip to content

Navigation Menu

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

Appearance settings

Commit 5cabe45

Browse filesBrowse 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
Copy full SHA for 5cabe45

File tree

1 file changed

+1
-4
lines changed
Filter options

1 file changed

+1
-4
lines changed

‎src/Symfony/Component/Validator/Constraint.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraint.php
+1-4
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.