Skip to content

Commit f94a41c

Browse files
fix: mismatch in classname for cache discovery (#6)
See #5 --------- Co-authored-by: Evan Sims <[email protected]>
1 parent 9fb31dc commit f94a41c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Discover.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ final class Discover implements DiscoverContract
8787

8888
public static function cache(bool $singleton = false): ?object
8989
{
90-
$implementationsPackage = '\PsrDiscovery\Implementations\Psr6\Cache';
90+
$implementationsPackage = '\PsrDiscovery\Implementations\Psr6\Caches';
9191

9292
if (! class_exists($implementationsPackage)) {
9393
throw new SupportPackageNotFoundException('PSR-6 Cache', 'psr-discovery/cache-implementations');

src/Exceptions/SupportPackageNotFoundException.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
use Exception;
88

9+
use function sprintf;
10+
911
final class SupportPackageNotFoundException extends Exception
1012
{
1113
/**

0 commit comments

Comments
 (0)