| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function run() |
||
| 40 | { |
||
| 41 | echo "<div class=\"small-box {$this->bgCssClass}\">"; |
||
| 42 | echo "<div class=\"inner\">"; |
||
| 43 | echo "<span class=\"info-box-text\">{$this->header}</span>"; |
||
| 44 | echo "<span class=\"info-box-number\">{$this->number}</span>"; |
||
| 45 | echo "</div>"; |
||
| 46 | echo "</div>"; |
||
| 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.