@@ -26,7 +26,7 @@ trait SendsRequests
2626 *
2727 * @param callable(\Throwable, \Saloon\Http\Request): (bool)|null $handleRetry
2828 */
29- public function send (Request $ request , MockClient $ mockClient = null , callable $ handleRetry = null ): Response
29+ public function send (Request $ request , ? MockClient $ mockClient = null , ? callable $ handleRetry = null ): Response
3030 {
3131 if (is_null ($ handleRetry )) {
3232 $ handleRetry = static fn (): bool => true ;
@@ -126,7 +126,7 @@ public function send(Request $request, MockClient $mockClient = null, callable $
126126 /**
127127 * Send a request asynchronously
128128 */
129- public function sendAsync (Request $ request , MockClient $ mockClient = null ): PromiseInterface
129+ public function sendAsync (Request $ request , ? MockClient $ mockClient = null ): PromiseInterface
130130 {
131131 $ sender = $ this ->sender ();
132132
@@ -163,7 +163,7 @@ public function sendAsync(Request $request, MockClient $mockClient = null): Prom
163163 *
164164 * @param callable(\Throwable, \Saloon\Http\Request): (bool)|null $handleRetry
165165 */
166- public function sendAndRetry (Request $ request , int $ tries , int $ interval = 0 , callable $ handleRetry = null , bool $ throw = true , MockClient $ mockClient = null , bool $ useExponentialBackoff = false ): Response
166+ public function sendAndRetry (Request $ request , int $ tries , int $ interval = 0 , ? callable $ handleRetry = null , bool $ throw = true , ? MockClient $ mockClient = null , bool $ useExponentialBackoff = false ): Response
167167 {
168168 $ request ->tries = $ tries ;
169169 $ request ->retryInterval = $ interval ;
@@ -176,7 +176,7 @@ public function sendAndRetry(Request $request, int $tries, int $interval = 0, ca
176176 /**
177177 * Create a new PendingRequest
178178 */
179- public function createPendingRequest (Request $ request , MockClient $ mockClient = null ): PendingRequest
179+ public function createPendingRequest (Request $ request , ? MockClient $ mockClient = null ): PendingRequest
180180 {
181181 return new PendingRequest ($ this , $ request , $ mockClient );
182182 }
0 commit comments