Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class ChangeInfoBox extends Widget |
||
15 | { |
||
16 | public $header = 'Bookmarks'; |
||
17 | public $number = '41'; |
||
18 | public $format = 'integer'; |
||
19 | |||
20 | protected $bgCssClass = 'bg-blue'; |
||
21 | |||
22 | /** |
||
23 | * @var \app\components\Formatter |
||
24 | */ |
||
25 | protected $formatter; |
||
26 | |||
27 | public function init() |
||
36 | } |
||
37 | } |
||
38 | |||
39 | public function run() |
||
47 | } |
||
48 | } |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.