| 1 | <?php |
||
| 18 | class WidgetCacheClearer implements CacheClearerInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Client |
||
| 22 | */ |
||
| 23 | private $cache; |
||
| 24 | /** |
||
| 25 | * WidgetCache constructor. |
||
| 26 | * |
||
| 27 | * @param Client $cache |
||
| 28 | */ |
||
| 29 | public function __construct(WidgetCache $cache) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param Widget $widget |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function clear($cacheDir) |
||
| 43 | } |
||
| 44 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..