Skip to content

Commit 0a9981d

Browse files
committed
PHP 8.4: Implicitly nullable parameters deprecated
1 parent 50b0069 commit 0a9981d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Discord/Http.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Http
141141
* @param LoopInterface $loop
142142
* @param DriverInterface|null $driver
143143
*/
144-
public function __construct(string $token, LoopInterface $loop, LoggerInterface $logger, DriverInterface $driver = null)
144+
public function __construct(string $token, LoopInterface $loop, LoggerInterface $logger, ?DriverInterface $driver = null)
145145
{
146146
$this->token = $token;
147147
$this->loop = $loop;
@@ -325,11 +325,11 @@ protected function guessContent(&$content)
325325
* Executes a request.
326326
*
327327
* @param Request $request
328-
* @param Deferred $deferred
328+
* @param Deferred|null $deferred
329329
*
330330
* @return PromiseInterface
331331
*/
332-
protected function executeRequest(Request $request, Deferred $deferred = null): PromiseInterface
332+
protected function executeRequest(Request $request, ?Deferred $deferred = null): PromiseInterface
333333
{
334334
if ($deferred === null) {
335335
$deferred = new Deferred();

0 commit comments

Comments
 (0)