1 | <?php /** MicroMemcachedCache */ |
||
19 | class MemcachedCache extends BaseCache |
||
20 | { |
||
21 | /** @var \Memcache|\Memcached $driver driver memcache(d) */ |
||
22 | protected $driver; |
||
23 | |||
24 | /** |
||
25 | * Constructor |
||
26 | * |
||
27 | * @access public |
||
28 | * |
||
29 | * @param array $config config array |
||
30 | * |
||
31 | * @result void |
||
32 | * @throws Exception |
||
33 | */ |
||
34 | public function __construct(array $config = []) |
||
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | public function check() |
||
82 | |||
83 | /** |
||
84 | * Destructor |
||
85 | * |
||
86 | * @access public |
||
87 | * @result void |
||
88 | */ |
||
89 | public function __destruct() |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function get($name) |
||
105 | |||
106 | /** |
||
107 | * @inheritdoc |
||
108 | */ |
||
109 | public function set($name, $value, $duration = 0) |
||
124 | |||
125 | /** |
||
126 | * @inheritdoc |
||
127 | */ |
||
128 | public function delete($name) |
||
132 | |||
133 | /** |
||
134 | * @inheritdoc |
||
135 | */ |
||
136 | public function clean() |
||
140 | |||
141 | /** |
||
142 | * @inheritdoc |
||
143 | */ |
||
144 | public function info() |
||
148 | |||
149 | /** |
||
150 | * @inheritdoc |
||
151 | */ |
||
152 | public function getMeta($id) |
||
163 | |||
164 | /** |
||
165 | * @inheritdoc |
||
166 | */ |
||
167 | public function increment($name, $offset = 1) |
||
171 | |||
172 | /** |
||
173 | * @inheritdoc |
||
174 | */ |
||
175 | public function decrement($name, $offset = 1) |
||
179 | } |
||
180 |
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: