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 f5a7ad8

Browse filesBrowse files
minor #18112 [Validator] Fixing inaccurate typehint in docblock (natechicago)
This PR was merged into the 2.8 branch. Discussion ---------- [Validator] Fixing inaccurate typehint in docblock | Q | A | ------------- | --- | Branch | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a As of Symfony 2.8, constraint errors are now string UUIDs rather than integers. The corresponding docblock typehint in `Symfony\Component\Validator\Constraint::getErrorName` should reflect this change. Commits ------- 4b3b7da [Validator] Fixing inaccurate typehint in docblock
2 parents 9999dcb + 4b3b7da commit f5a7ad8
Copy full SHA for f5a7ad8

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraint.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ abstract class Constraint
6969
/**
7070
* Returns the name of the given error code.
7171
*
72-
* @param int $errorCode The error code
72+
* @param string $errorCode The error code
7373
*
7474
* @return string The name of the error code
7575
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.