1 | <?php |
||
10 | final class Driver extends \Bernard\Driver\PhpRedis\Driver |
||
11 | { |
||
12 | /** |
||
13 | * @param ClientInterface $redis |
||
14 | */ |
||
15 | public function __construct(ClientInterface $redis) |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function popMessage($queueName, $duration = 5) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function info() |
||
46 | } |
||
47 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: