Skip to content

Commit 39a3401

Browse files
committed
bug #37725 [Form] Fix Guess phpdoc return type (franmomu)
This PR was merged into the 3.4 branch. Discussion ---------- [Form] Fix Guess phpdoc return type | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | - | License | MIT | Doc PR | - Since `Guess` is abstract, `static` represents better the return type, so calling `TypeGuess::getBestGuess()` would return `TypeGuess` instead of `Guess`. Commits ------- 27bb1c499d Fix typehint phpdoc
2 parents d82f867 + b1c4d87 commit 39a3401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Guess/Guess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ abstract class Guess
6060
* If there are multiple guesses with the same, highest confidence, the
6161
* returned guess is any of them.
6262
*
63-
* @param Guess[] $guesses An array of guesses
63+
* @param static[] $guesses An array of guesses
6464
*
65-
* @return self|null
65+
* @return static|null
6666
*/
6767
public static function getBestGuess(array $guesses)
6868
{

0 commit comments

Comments
 (0)