Skip to content

Commit

Permalink
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_…
Browse files Browse the repository at this point in the history
…null_value
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
1 parent 9e37adf commit bb0df5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sms77Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class Sms77Transport extends AbstractTransport
private $apiKey;
private $from;

public function __construct(string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
public function __construct(string $apiKey, ?string $from = null, ?HttpClientInterface $client = null, ?EventDispatcherInterface $dispatcher = null)
{
$this->apiKey = $apiKey;
$this->from = $from;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Sms77TransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class Sms77TransportTest extends TransportTestCase
/**
* @return Sms77Transport
*/
public static function createTransport(HttpClientInterface $client = null, string $from = null): TransportInterface
public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): TransportInterface
{
return new Sms77Transport('apiKey', $from, $client ?? new MockHttpClient());
}
Expand Down

0 comments on commit bb0df5c

Please sign in to comment.