1 | <?php |
||
27 | class Cache extends Component |
||
28 | { |
||
29 | /** |
||
30 | * @var LoggerInterface |
||
31 | */ |
||
32 | public $logger; |
||
33 | |||
34 | /** |
||
35 | * The event name |
||
36 | */ |
||
37 | const EVENT_REGISTER_CACHE_POOLS = 'registerCachePools'; |
||
38 | |||
39 | /** |
||
40 | * @var DriverInterface |
||
41 | */ |
||
42 | public $applicationDriver; |
||
43 | |||
44 | /** |
||
45 | * @return PoolInterface[] |
||
46 | */ |
||
47 | public function findAll() |
||
65 | |||
66 | /** |
||
67 | * @param string $handle |
||
68 | * @return PoolInterface |
||
69 | */ |
||
70 | public function get(string $handle = 'default') |
||
88 | |||
89 | /** |
||
90 | * @return Pool |
||
91 | */ |
||
92 | protected function getApplicationPool() |
||
109 | |||
110 | /** |
||
111 | * @return DriverInterface |
||
112 | */ |
||
113 | protected function getApplicationDriver() |
||
133 | |||
134 | /** |
||
135 | * @return BlackHole|FileSystem |
||
136 | */ |
||
137 | private function resolveApplicationDriver() |
||
158 | |||
159 | /** |
||
160 | * @param array $config |
||
161 | * @return object|DriverInterface |
||
162 | * @throws \yii\base\InvalidConfigException |
||
163 | */ |
||
164 | private function createDriver(array $config): DriverInterface |
||
170 | |||
171 | /** |
||
172 | * @return Pool |
||
173 | */ |
||
174 | protected function createDummyPool() |
||
185 | |||
186 | /** |
||
187 | * @param \Stash\Pool $pool |
||
188 | */ |
||
189 | protected function setLogger(\Stash\Pool $pool) |
||
199 | |||
200 | /** |
||
201 | * @param $logger |
||
202 | * @return bool |
||
203 | */ |
||
204 | private function isLoggerValid($logger) |
||
208 | |||
209 | /** |
||
210 | * @param null $default |
||
211 | * @return null|object |
||
212 | */ |
||
213 | private function applicationLogger($default = null) |
||
220 | } |
||
221 |
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: