Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 34 | public function __construct(string $a_mark, int $a_score = null) |
|
17 | { |
||
18 | 34 | $this->mark = $a_mark; |
|
19 | 34 | $this->score = $a_score; |
|
20 | 34 | $this->type = RollType::fromMark($a_mark); |
|
1 ignored issue
–
show
|
|||
21 | 34 | } |
|
22 | |||
57 |
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..