8000 minor #18112 [Validator] Fixing inaccurate typehint in docblock (nate… · dunglas/symfony@f5a7ad8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5a7ad8

Browse files
minor symfony#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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraint.php

Lines 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