1 | <?php |
||
13 | class SymfonyCacheBridge implements CacheInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var AdapterInterface |
||
17 | */ |
||
18 | private $adapter; |
||
19 | |||
20 | /** |
||
21 | * @param AdapterInterface $adapter |
||
22 | */ |
||
23 | 24 | public function __construct(AdapterInterface $adapter) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 4 | public function get($id) |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 4 | public function has($id) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 4 | public function save($id, $data, $lifeTime = 0) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 4 | public function delete($id) |
|
75 | } |
||
76 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: