1 | <?php |
||
21 | abstract class VersionedRedisSentinelManager |
||
22 | extends RedisManager |
||
23 | implements Factory |
||
24 | { |
||
25 | /** |
||
26 | * Get the Redis Connection instance represented by the specified name |
||
27 | * |
||
28 | * @param string|null $name The name of the connection as defined in the |
||
29 | * configuration |
||
30 | * |
||
31 | * @return \Illuminate\Redis\Connections\PredisConnection The configured |
||
|
|||
32 | * Redis Connection instance |
||
33 | * |
||
34 | * @throws InvalidArgumentException If attempting to initialize a Redis |
||
35 | * Cluster connection |
||
36 | * @throws InvalidArgumentException If the specified connection is not |
||
37 | * defined in the configuration |
||
38 | */ |
||
39 | protected function resolveConnection($name = null) |
||
58 | |||
59 | /** |
||
60 | * Get the appropriate Connector instance for the current client driver |
||
61 | * |
||
62 | * @return Connectors\PredisConnector The Connector instance for the |
||
63 | * current driver |
||
64 | * |
||
65 | * @throws InvalidArgumentException If the current client driver is not |
||
66 | * supported |
||
67 | */ |
||
68 | protected function connector() |
||
82 | } |
||
83 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.