1 | <?php |
||
25 | class Cache extends Component |
||
26 | { |
||
27 | /** |
||
28 | * @var LoggerInterface |
||
29 | */ |
||
30 | public $logger; |
||
31 | |||
32 | /** |
||
33 | * The event name |
||
34 | */ |
||
35 | const EVENT_REGISTER_CACHE_POOLS = 'registerCachePools'; |
||
36 | |||
37 | /** |
||
38 | * @return PoolInterface[] |
||
39 | */ |
||
40 | public function findAll() |
||
58 | |||
59 | /** |
||
60 | * @param string $handle |
||
61 | * @return PoolInterface |
||
62 | */ |
||
63 | public function get(string $handle = 'default') |
||
81 | |||
82 | /** |
||
83 | * @return Pool |
||
84 | */ |
||
85 | protected function getApplicationPool() |
||
102 | |||
103 | /** |
||
104 | * @return DriverInterface |
||
105 | */ |
||
106 | protected function getApplicationDriver() |
||
117 | |||
118 | /** |
||
119 | * @return Pool |
||
120 | */ |
||
121 | protected function createDummyPool() |
||
132 | |||
133 | /** |
||
134 | * @param \Stash\Pool $pool |
||
135 | */ |
||
136 | protected function setLogger(\Stash\Pool $pool) |
||
146 | |||
147 | /** |
||
148 | * @param $logger |
||
149 | * @return bool |
||
150 | */ |
||
151 | private function isLoggerValid($logger) |
||
155 | |||
156 | /** |
||
157 | * @param null $default |
||
158 | * @return null|object |
||
159 | */ |
||
160 | private function applicationLogger($default = null) |
||
167 | } |
||
168 |
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: