Skip to content

Commit

Permalink
fix: mismatch in classname for cache discovery (#6)
Browse files Browse the repository at this point in the history
See #5

---------

Co-authored-by: Evan Sims <[email protected]>
  • Loading branch information
reyostallenberg and evansims authored Aug 9, 2024
1 parent 9fb31dc commit f94a41c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discover.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ final class Discover implements DiscoverContract

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

if (! class_exists($implementationsPackage)) {
throw new SupportPackageNotFoundException('PSR-6 Cache', 'psr-discovery/cache-implementations');
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/SupportPackageNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

use Exception;

use function sprintf;

final class SupportPackageNotFoundException extends Exception
{
/**
Expand Down

0 comments on commit f94a41c

Please sign in to comment.