Skip to content

Commit 2a6e14d

Browse files
authored
Fix document resolver interface (#48)
1 parent 438da49 commit 2a6e14d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Lib/DocumentResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
/**
2424
* @internal
2525
*/
26-
final class DocumentResolver
26+
final class DocumentResolver implements DocumentResolverInterface
2727
{
2828
/**
2929
* @throws Exception
3030
*/
31-
public function getInstance(string $adapter = null): Adapter
31+
public function getInstance(string $adapter = null): ?Adapter
3232
{
3333
Document::getInstance($adapter);
3434
}

src/Lib/DocumentResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface DocumentResolverInterface
2424
/**
2525
* @throws Exception
2626
*/
27-
public function getInstance(string $adapter = null): Adapter;
27+
public function getInstance(string $adapter = null): ?Adapter;
2828

2929
public function isAvailable(): bool;
3030

0 commit comments

Comments
 (0)