Skip to content

Commit

Permalink
Implement ProviderInterface with type annotations
Browse files Browse the repository at this point in the history
Added type annotations to `RedisDsnProvider` to specify it implements `ProviderInterface` for multiple Redis-related classes. This enhances type safety and code clarity.
  • Loading branch information
koriym committed Sep 3, 2024
1 parent b38898c commit 3abfa15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RedisDsnProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Relay\Relay;
use Symfony\Component\Cache\Adapter\RedisAdapter;

/** @implements ProviderInterface<Redis|RedisArray|RedisCluster|ClientInterface|Relay> */
final class RedisDsnProvider implements ProviderInterface
{
/** @param string $redisDsn Redis */
Expand Down

0 comments on commit 3abfa15

Please sign in to comment.