@@ -560,13 +560,13 @@ returns a ``Crawler`` instance.
560
560
561
561
The full signature of the ``request() `` method is::
562
562
563
- request(
563
+ public function request(
564
564
string $method,
565
565
string $uri,
566
566
array $parameters = [],
567
567
array $files = [],
568
568
array $server = [],
569
- string $content = null,
569
+ ? string $content = null,
570
570
bool $changeHistory = true
571
571
): Crawler
572
572
@@ -971,7 +971,7 @@ Response Assertions
971
971
Asserts that the response was successful (HTTP status is 2xx).
972
972
``assertResponseStatusCodeSame(int $expectedCode, string $message = '') ``
973
973
Asserts a specific HTTP status code.
974
- ``assertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '') ``
974
+ ``assertResponseRedirects(? string $expectedLocation = null, ? int $expectedCode = null, string $message = '') ``
975
975
Asserts the response is a redirect response (optionally, you can check
976
976
the target location and status code). The excepted location can be either
977
977
an absolute or a relative path.
@@ -980,10 +980,10 @@ Response Assertions
980
980
``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '') ``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '') ``
981
981
Asserts the given header does (not) contain the expected value on the
982
982
response, e.g. ``assertResponseHeaderSame('content-type', 'application/octet-stream'); ``.
983
- ``assertResponseHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``/``assertResponseNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``
983
+ ``assertResponseHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``/``assertResponseNotHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``
984
984
Asserts the given cookie is present in the response (optionally
985
985
checking for a specific cookie path or domain).
986
- ``assertResponseCookieValueSame(string $name, string $expectedValue, string $path = '/', string $domain = null, string $message = '') ``
986
+ ``assertResponseCookieValueSame(string $name, string $expectedValue, string $path = '/', ? string $domain = null, string $message = '') ``
987
987
Asserts the given cookie is present and set to the expected value.
988
988
``assertResponseFormatSame(?string $expectedFormat, string $message = '') ``
989
989
Asserts the response format returned by the
@@ -1009,10 +1009,10 @@ Request Assertions
1009
1009
Browser Assertions
1010
1010
..................
1011
1011
1012
- ``assertBrowserHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``/``assertBrowserNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '') ``
1012
+ ``assertBrowserHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``/``assertBrowserNotHasCookie(string $name, string $path = '/', ? string $domain = null, string $message = '') ``
1013
1013
Asserts that the test Client does (not) have the given cookie set
1014
1014
(meaning, the cookie was set by any response in the test).
1015
- ``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', string $domain = null, string $message = '') ``
1015
+ ``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', ? string $domain = null, string $message = '') ``
1016
1016
Asserts the given cookie in the test Client is set to the expected
1017
1017
value.
1018
1018
``assertThatForClient(Constraint $constraint, string $message = '') ``
@@ -1072,18 +1072,18 @@ Crawler Assertions
1072
1072
Mailer Assertions
1073
1073
.................
1074
1074
1075
- ``assertEmailCount(int $count, string $transport = null, string $message = '') ``
1075
+ ``assertEmailCount(int $count, ? string $transport = null, string $message = '') ``
1076
1076
Asserts that the expected number of emails was sent.
1077
- ``assertQueuedEmailCount(int $count, string $transport = null, string $message = '') ``
1077
+ ``assertQueuedEmailCount(int $count, ? string $transport = null, string $message = '') ``
1078
1078
Asserts that the expected number of emails was queued (e.g. using the
1079
1079
Messenger component).
1080
1080
``assertEmailIsQueued(MessageEvent $event, string $message = '') ``/``assertEmailIsNotQueued(MessageEvent $event, string $message = '') ``
1081
1081
Asserts that the given mailer event is (not) queued. Use
1082
- ``getMailerEvent(int $index = 0, string $transport = null) `` to
1082
+ ``getMailerEvent(int $index = 0, ? string $transport = null) `` to
1083
1083
retrieve a mailer event by index.
1084
1084
``assertEmailAttachmentCount(RawMessage $email, int $count, string $message = '') ``
1085
1085
Asserts that the given email has the expected number of attachments. Use
1086
- ``getMailerMessage(int $index = 0, string $transport = null) `` to
1086
+ ``getMailerMessage(int $index = 0, ? string $transport = null) `` to
1087
1087
retrieve a specific email by index.
1088
1088
``assertEmailTextBodyContains(RawMessage $email, string $text, string $message = '') ``/``assertEmailTextBodyNotContains(RawMessage $email, string $text, string $message = '') ``
1089
1089
Asserts that the text body of the given email does (not) contain the
0 commit comments