Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function onInitWhenNoAlertsSetAllDefined() { |
||
46 | $widget = $this->makeWidget(); |
||
47 | $widget->init(); |
||
48 | |||
49 | $this->assertSame( |
||
50 | array( |
||
51 | TbAlert::CTX_SUCCESS, |
||
52 | TbAlert::CTX_INFO, |
||
53 | TbAlert::CTX_WARNING, |
||
54 | TbAlert::CTX_DANGER, |
||
55 | TbAlert::CTX_ERROR |
||
56 | ), |
||
57 | $widget->alerts |
||
58 | ); |
||
59 | } |
||
60 | } |
||
61 |
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..