Skip to content

Commit 094c557

Browse files
committed
📦 Fix PHP 8.4 deprecations
1 parent b3bb280 commit 094c557

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/GraphQL/InvalidUserPasswordException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class InvalidUserPasswordException extends GraphQLException
1010
{
11-
public static function create(Exception $previous = null): self
11+
public static function create(?Exception $previous = null): self
1212
{
1313
return new self('The provided user / password is incorrect.', 401, $previous, ['category' => 'Security']);
1414
}

src/Controller/GraphQLiteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GraphQLiteController
4848
*/
4949
private $httpCodeDecider;
5050

51-
public function __construct(ServerConfig $serverConfig, HttpMessageFactoryInterface $httpMessageFactory = null, ?int $debug = null, ?HttpCodeDeciderInterface $httpCodeDecider = null)
51+
public function __construct(ServerConfig $serverConfig, ?HttpMessageFactoryInterface $httpMessageFactory = null, ?int $debug = null, ?HttpCodeDeciderInterface $httpCodeDecider = null)
5252
{
5353
$this->serverConfig = $serverConfig;
5454
$this->httpMessageFactory = $httpMessageFactory ?: new PsrHttpFactory(new ServerRequestFactory(), new StreamFactory(), new UploadedFileFactory(), new ResponseFactory());

0 commit comments

Comments
 (0)