8000 minor #22939 [Form] fix guesed value param type in docblock (xabbuh) · enumag/symfony@84b50f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84b50f1

Browse files
committed
minor symfony#22939 [Form] fix guesed value param type in docblock (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [Form] fix guesed value param type in docblock | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 43636ba [Form] fix guesed value param type in docblock
2 parents 20485d1 + 43636ba commit 84b50f1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/Symfony/Component/Form/Guess/ValueGuess.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,14 @@
1818
*/
1919
class ValueGuess extends Guess
2020
{
21-
/**
22-
* The guessed value.
23-
*
24-
* @var array
25-
*/
2621
private $value;
2722

2823
/**
2924
* Constructor.
3025
*
31-
* @param string $value The guessed value
32-
* @param int $confidence The confidence that the guessed class name
33-
* is correct
26+
* @param string|int|bool|null $value The guessed value
27+
* @param int $confidence The confidence that the guessed class name
28+
* is correct
3429
*/
3530
public function __construct($value, $confidence)
3631
{
@@ -42,7 +37,7 @@ public function __construct($value, $confidence)
4237
/**
4338
* Returns the guessed value.
4439
*
45-
* @return mixed
40+
* @return string|int|bool|null
4641
*/
4742
public function getValue()
4843
{

0 commit comments

Comments
 (0)
0