Skip to content

Commit

Permalink
Implicitly marking parameter as nullable is deprecated, the explicit …
Browse files Browse the repository at this point in the history
…nullable type must be used instead. (#70)
  • Loading branch information
cbepxpa3ym authored Dec 9, 2024
1 parent 0692fe8 commit 4f66ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(ClientInterface $httpClient, ResponseBuilder $respon
* @throws \UnexpectedValueException When response body is not a valid json
* @throws \RuntimeException When there are transfer errors
*/
public function query(string $query, array $variables = null): Response
public function query(string $query, ?array $variables = null): Response
{
return $this->executeQuery($query, $variables);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ResponseBuilder
{
private $dataObjectBuilder;

public function __construct(DataObjectBuilder $dataObjectBuilder = null)
public function __construct(?DataObjectBuilder $dataObjectBuilder = null)
{
$this->dataObjectBuilder = $dataObjectBuilder;
}
Expand Down

0 comments on commit 4f66ecd

Please sign in to comment.