From be50a3c6688a941325699568dad333e39accc669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Wed, 17 Apr 2024 12:29:10 +0200 Subject: [PATCH] Fix Explicite nullable types (7.0) --- testing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing.rst b/testing.rst index ee3a6c50191..0dfa5212217 100644 --- a/testing.rst +++ b/testing.rst @@ -1082,10 +1082,10 @@ Mailer Assertions Notifier Assertions ................... -``assertNotificationCount(int $count, string $transportName = null, string $message = '')`` +``assertNotificationCount(int $count, ?string $transportName = null, string $message = '')`` Asserts that the given number of notifications has been created (in total or for the given transport). -``assertQueuedNotificationCount(int $count, string $transportName = null, string $message = '')`` +``assertQueuedNotificationCount(int $count, ?string $transportName = null, string $message = '')`` Asserts that the given number of notifications are queued (in total or for the given transport). ``assertNotificationIsQueued(MessageEvent $event, string $message = '')`` @@ -1113,7 +1113,7 @@ HttpClient Assertions For all the following assertions, ``$client->enableProfiler()`` must be called before the code that will trigger HTTP request(s). -``assertHttpClientRequest(string $expectedUrl, string $expectedMethod = 'GET', string|array $expectedBody = null, array $expectedHeaders = [], string $httpClientId = 'http_client')`` +``assertHttpClientRequest(string $expectedUrl, string $expectedMethod = 'GET', string|array|null $expectedBody = null, array $expectedHeaders = [], string $httpClientId = 'http_client')`` Asserts that the given URL has been called using, if specified, the given method body and headers. By default it will check on the HttpClient, but you can also pass a specific HttpClient ID.