@@ -555,13 +555,13 @@ returns a ``Crawler`` instance.
555
555
556
556
The full signature of the ``request() `` method is::
557
557
558
- request(
558
+ public function request(
559
559
string $method,
560
560
string $uri,
561
561
array $parameters = [],
562
562
array $files = [],
563
563
array $server = [],
564
- string $content = null,
564
+ ? string $content = null,
565
565
bool $changeHistory = true
566
566
): Crawler
567
567
@@ -960,7 +960,7 @@ Response Assertions
960
960
Asserts that the response was successful (HTTP status is 2xx).
961
961
``assertResponseStatusCodeSame(int $expectedCode, string $message = '') ``
962
962
Asserts a specific HTTP status code.
963
- ``assertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '') ``
963
+ ``assertResponseRedirects(? string $expectedLocation = null, ? int $expectedCode = null, string $message = '') ``
964
964
Asserts the response is a redirect response (optionally, you can check
965
965
the target location and status code). The excepted location can be either
966
966
an absolute or a relative path.
@@ -969,10 +969,10 @@ Response Assertions
969
969
``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '') ``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '') ``
970
970
Asserts the given header does (not) contain the expected value on the
971
971
response, e.g. ``assertResponseHeaderSame('content-type', 'application/octet-stream'); ``.
972
- ``assertResponseHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``/``assertResponseNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``
972
+ ``assertResponseHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``/``assertResponseNotHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``
973
973
Asserts the given cookie is present in the response (optionally
974
974
checking for a specific cookie path or domain).
975
- ``assertResponseCookieValueSame(string $name, string $expectedValue, string $path = '/', string $domain = null, string $message = '') ``
975
+ ``assertResponseCookieValueSame(string $name, string $expectedValue, string $path = '/', ? string $domain = null, string $message = '') ``
976
976
Asserts the given cookie is present and set to the expected value.
977
977
``assertResponseFormatSame(?string $expectedFormat, string $message = '') ``
978
978
Asserts the response format returned by the
@@ -993,10 +993,10 @@ Request Assertions
993
993
Browser Assertions
994
994
..................
995
995
996
- ``assertBrowserHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``/``assertBrowserNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``
996
+ ``assertBrowserHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``/``assertBrowserNotHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``
997
997
Asserts that the test Client does (not) have the given cookie set
998
998
(meaning, the cookie was set by any response in the test).
999
- ``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', string $domain = null, string $message = '') ``
999
+ ``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', ? string $domain = null, string $message = '') ``
1000
1000
Asserts the given cookie in the test Client is set to the expected
1001
1001
value.
1002
1002
``assertThatForClient(Constraint $constraint, string $message = '') ``
@@ -1047,18 +1047,18 @@ Crawler Assertions
1047
1047
Mailer Assertions
1048
1048
.................
1049
1049
1050
- ``assertEmailCount(int $count, string $transport = null, string $message = '') ``
1050
+ ``assertEmailCount(int $count, ? string $transport = null, string $message = '') ``
1051
1051
Asserts that the expected number of emails was sent.
1052
- ``assertQueuedEmailCount(int $count, string $transport = null, string $message = '') ``
1052
+ ``assertQueuedEmailCount(int $count, ? string $transport = null, string $message = '') ``
1053
1053
Asserts that the expected number of emails was queued (e.g. using the
1054
1054
Messenger component).
1055
1055
``assertEmailIsQueued(MessageEvent $event, string $message = '') ``/``assertEmailIsNotQueued(MessageEvent $event, string $message = '') ``
1056
1056
Asserts that the given mailer event is (not) queued. Use
1057
- ``getMailerEvent(int $index = 0, string $transport = null) `` to
1057
+ ``getMailerEvent(int $index = 0, ? string $transport = null) `` to
1058
1058
retrieve a mailer event by index.
1059
1059
``assertEmailAttachmentCount(RawMessage $email, int $count, string $message = '') ``
1060
1060
Asserts that the given email has the expected number of attachments. Use
1061
- ``getMailerMessage(int $index = 0, string $transport = null) `` to
1061
+ ``getMailerMessage(int $index = 0, ? string $transport = null) `` to
1062
1062
retrieve a specific email by index.
1063
1063
``assertEmailTextBodyContains(RawMessage $email, string $text, string $message = '') ``/``assertEmailTextBodyNotContains(RawMessage $email, string $text, string $message = '') ``
1064
1064
Asserts that the text body of the given email does (not) contain the
0 commit comments