| 1 | <?php  | 
            ||
| 14 | class WidgetCacheClearer implements CacheClearerInterface  | 
            ||
| 15 | { | 
            ||
| 16 | /**  | 
            ||
| 17 | * @var Client  | 
            ||
| 18 | */  | 
            ||
| 19 | private $cache;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * WidgetCache constructor.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param Client $cache  | 
            ||
| 25 | */  | 
            ||
| 26 | public function __construct(WidgetCache $cache)  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @param Widget $widget  | 
            ||
| 33 | *  | 
            ||
| 34 | * @return string  | 
            ||
| 35 | */  | 
            ||
| 36 | public function clear($cacheDir)  | 
            ||
| 40 | }  | 
            ||
| 41 | 
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..