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 d5cd9e8

Browse filesBrowse files
committed
Fixed link and typo in type_guesser.rst
1 parent c788325 commit d5cd9e8
Copy full SHA for d5cd9e8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎components/form/type_guesser.rst

Copy file name to clipboardExpand all lines: components/form/type_guesser.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The ``TypeGuess`` constructor requires 3 options:
7979
want to set the ``class`` option). If no types are guessed, this should be
8080
set to an empty array;
8181
* The confidence that the guessed type is correct. This can be one of the
82-
constants of the :class:`Symfony\\Component\\Form\\Guess\Guess` class:
82+
constants of the :class:`Symfony\\Component\\Form\\Guess\\Guess` class:
8383
``LOW_CONFIDENCE``, ``MEDIUM_CONFIDENCE``, ``HIGH_CONFIDENCE``,
8484
``VERY_HIGH_CONFIDENCE``. After all type guessers have been executed, the
8585
type with the highest confidence is used.
@@ -105,7 +105,7 @@ With this knowledge, you can easily implement the ``guessType`` method of the
105105
// otherwise, base the type on the @var annotation
106106
switch ($annotations['var']) {
107107
case 'string':
108-
// there is a high confidence that the type is a string when
108+
// there is a high confidence that the type is text when
109109
// @var string is used
110110
return new TypeGuess('text', array(), Guess::HIGH_CONFIDENCE);
111111

0 commit comments

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