1 | <?php |
||
14 | class DoctrineScriptCache extends SqlScriptCache implements ScriptCacheInterface |
||
15 | { |
||
16 | protected $repository; |
||
17 | protected $entityManager; |
||
18 | |||
19 | /** |
||
20 | * @param ApiCacheRepository $repository |
||
21 | * @param ObjectManager $manager |
||
22 | */ |
||
23 | public function __construct(ApiCacheRepository $repository, ObjectManager $manager) |
||
28 | |||
29 | /** |
||
30 | * @param string $key |
||
31 | * |
||
32 | * @return string|null |
||
33 | */ |
||
34 | protected function get($key) |
||
44 | |||
45 | /** |
||
46 | * @param string $key |
||
47 | * @param string $value |
||
48 | */ |
||
49 | protected function set($key, $value) |
||
63 | |||
64 | /** |
||
65 | * @param string $key |
||
66 | */ |
||
67 | protected function clear($key) |
||
76 | } |
||
77 |
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: