Skip to content

Commit c9408ef

Browse files
committed
Change optional parameters back to optional.
1 parent 4f9e38b commit c9408ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Exception.php

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

55
class Exception extends \Exception
66
{
7-
public static function create(string $error, array $context, ?\Exception $previous): Exception
7+
public static function create(string $error, array $context, ?\Exception $previous = null): Exception
88
{
99
return new self(vsprintf($error, $context), 0, $previous);
1010
}

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ final public function setNotifications(SolidNotificationsInterface $notification
9696
//////////////////////////////// PUBLIC API \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
9797

9898
// @TODO: The Graph should be injected by the caller
99-
final public function __construct(Filesystem $filesystem, Response $response, ?Graph $graph)
99+
final public function __construct(Filesystem $filesystem, Response $response, ?Graph $graph = null)
100100
{
101101
$this->basePath = '';
102102
$this->baseUrl = '';

0 commit comments

Comments
 (0)