Skip to content

Commit c321bf2

Browse files
committed
minor #20077 [DomCrawler] fixes typo Form::getFields() -> Form::getFiles() (mvhirsch)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [DomCrawler] fixes typo `Form::getFields()` -> `Form::getFiles()` Looks like this method does not exist in `Form`: https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/DomCrawler/Form.php I think it never did. Looking at v2.8 it does not exist, same's true for 3.4, 4.4, 5.4, 6.4, 7.0 ... Commits ------- 8cfb8e0 [DomCrawler] fixes typo `Form::getFields()` -> `Form::getFiles()`
2 parents 8fe145a + 8cfb8e0 commit c321bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ The second optional argument is used to override the default form field values.
917917

918918
If you need access to the :class:`Symfony\\Component\\DomCrawler\\Form` object
919919
that provides helpful methods specific to forms (such as ``getUri()``,
920-
``getValues()`` and ``getFields()``) use the ``Crawler::selectButton()`` method instead::
920+
``getValues()`` and ``getFiles()``) use the ``Crawler::selectButton()`` method instead::
921921

922922
$client = static::createClient();
923923
$crawler = $client->request('GET', '/post/hello-world');

0 commit comments

Comments
 (0)