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

Appearance settings

Commit 5492bf4

Browse filesBrowse files
[Validator] Enhance PHPDoc on Constraint::getTargets()
1 parent b61db2f commit 5492bf4
Copy full SHA for 5492bf4

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-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.