1 | <?php |
||
7 | final class Driver extends \Bernard\Driver\PhpRedis\Driver |
||
8 | { |
||
9 | /** |
||
10 | * @param ClientInterface $redis |
||
11 | */ |
||
12 | 8 | public function __construct(ClientInterface $redis) |
|
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | 1 | public function popMessage($queueName, $duration = 5) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function info() |
||
43 | } |
||
44 |
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: