Skip to content

Commit 86d8df9

Browse files
committed
Fix implicit nullable type issues
1 parent 785faa4 commit 86d8df9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/Bitbucket/API/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Api
4949
* @param OptionalClientOption $options
5050
* @param ClientInterface $client
5151
*/
52-
public function __construct(array $options = array(), ClientInterface $client = null)
52+
public function __construct(array $options = array(), ?ClientInterface $client = null)
5353
{
5454
$this->httpClient = (null !== $client) ? $client : new Client($options, null);
5555

lib/Bitbucket/API/Http/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Client implements ClientInterface
5151
/**
5252
* @param OptionalClientOption $options
5353
*/
54-
public function __construct(array $options = array(), HttpPluginClientBuilder $httpClientBuilder = null)
54+
public function __construct(array $options = array(), ?HttpPluginClientBuilder $httpClientBuilder = null)
5555
{
5656
$this->responseHistory = new HistoryPlugin();
5757
$this->options = array_merge(array_merge($this->options, $options));

lib/Bitbucket/API/Http/HttpPluginClientBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class HttpPluginClientBuilder
3030
/**
3131
* @param MessageFactory|RequestFactoryInterface|null $requestFactory
3232
*/
33-
public function __construct(ClientInterface $httpClient = null, $requestFactory = null, StreamFactoryInterface $streamFactory = null)
33+
public function __construct(?ClientInterface $httpClient = null, $requestFactory = null, StreamFactoryInterface $streamFactory = null)
3434
{
3535
$requestFactory = $requestFactory ?? Psr17FactoryDiscovery::findRequestFactory();
3636
if ($requestFactory instanceof MessageFactory) {

lib/Bitbucket/API/Http/Response/Pager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(
3838
HttpPluginClientBuilder $httpPluginClientBuilder,
3939
ResponseInterface $response,
4040
$messageFactory = null,
41-
StreamFactoryInterface $streamFactory = null
41+
?StreamFactoryInterface $streamFactory = null
4242
) {
4343
/** @var ResponseInterface $response */
4444
if ($response->getStatusCode() >= 400) {

0 commit comments

Comments
 (0)