8000 [Validator] Fixing inaccurate typehint in docblock · symfony/symfony@4b3b7da · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b3b7da

Browse files
committed
[Validator] Fixing inaccurate typehint in docblock
As of Symfony 2.8, constraint errors are now string UUIDs rather than integers. The corresponding docblock typehint in getErrorName() should reflect this change.
1 parent e8b102e commit 4b3b7da

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