Skip to content

Commit 05389c8

Browse files
authored
Fixed implicitly nullable params (#6616)
1 parent 78bf25a commit 05389c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CoreMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function transferToResponse($response, ServerRequestInterface $request
9090
return $this->responseBuilder->buildResponse($request, $response);
9191
}
9292

93-
protected function buildErrorData(ServerRequestInterface $request, int $code, string $message = null, Throwable $throwable = null): array
93+
protected function buildErrorData(ServerRequestInterface $request, int $code, ?string $message = null, ?Throwable $throwable = null): array
9494
{
9595
$id = $request->getAttribute(Constant::REQUEST_ID);
9696

src/TcpServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(
6161
ExceptionHandlerDispatcher $exceptionDispatcher,
6262
ProtocolManager $protocolManager,
6363
StdoutLoggerInterface $logger,
64-
string $protocol = null
64+
?string $protocol = null
6565
) {
6666
parent::__construct($container, $dispatcher, $exceptionDispatcher, $logger);
6767

0 commit comments

Comments
 (0)