Skip to content

Commit 73546b8

Browse files
committed
style: fix (updated) code style
1 parent a9d219e commit 73546b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Client extends MockClient
1818
* @param \Swis\Http\Fixture\ResponseBuilderInterface $fixtureResponseBuilder
1919
* @param \Http\Message\ResponseFactory|null $responseFactory
2020
*/
21-
public function __construct(ResponseBuilderInterface $fixtureResponseBuilder, ResponseFactory $responseFactory = null)
21+
public function __construct(ResponseBuilderInterface $fixtureResponseBuilder, ?ResponseFactory $responseFactory = null)
2222
{
2323
parent::__construct($responseFactory);
2424

src/MockNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MockNotFoundException extends \Exception
1515
* @param int $code
1616
* @param \Throwable|null $previous
1717
*/
18-
public function __construct(string $message = '', array $possiblePaths = [], int $code = 0, \Throwable $previous = null)
18+
public function __construct(string $message = '', array $possiblePaths = [], int $code = 0, ?\Throwable $previous = null)
1919
{
2020
$this->possiblePaths = $possiblePaths;
2121

src/ResponseBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class ResponseBuilder implements ResponseBuilderInterface
6464
*/
6565
public function __construct(
6666
string $fixturesPath,
67-
ResponseFactoryInterface $responseFactory = null,
68-
StreamFactoryInterface $streamFactory = null
67+
?ResponseFactoryInterface $responseFactory = null,
68+
?StreamFactoryInterface $streamFactory = null
6969
) {
7070
$this->fixturesPath = $fixturesPath;
7171
$this->responseFactory = $responseFactory ?: Psr17FactoryDiscovery::findResponseFactory();

0 commit comments

Comments
 (0)