Skip to content

Commit 058dc44

Browse files
committed
minor #17221 [Testing] Add link request method & add type hint (mohamedGasmii)
This PR was merged into the 5.4 branch. Discussion ---------- [Testing] Add link request method & add type hint <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 45c152a [Testing] Add link request method & add type hint
2 parents 988921e + 45c152a commit 058dc44

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testing.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ into your Symfony application::
501501

502502
$crawler = $client->request('GET', '/post/hello-world');
503503

504-
The ``request()`` method takes the HTTP method and a URL as arguments and
504+
The :method:`request() <Symfony\\Component\\BrowserKit\\AbstractBrowser::request>` method takes the HTTP method and a URL as arguments and
505505
returns a ``Crawler`` instance.
506506

507507
.. tip::
@@ -513,14 +513,14 @@ returns a ``Crawler`` instance.
513513
The full signature of the ``request()`` method is::
514514

515515
request(
516-
$method,
517-
$uri,
516+
string $method,
517+
string $uri,
518518
array $parameters = [],
519519
array $files = [],
520520
array $server = [],
521-
$content = null,
522-
$changeHistory = true
523-
)
521+
string $content = null,
522+
bool $changeHistory = true
523+
): Crawler
524524

525525
This allows you to create all types of requests you can think of:
526526

0 commit comments

Comments
 (0)