| 1 | <?php |
||
| 22 | class Counter extends Repository |
||
| 23 | { |
||
| 24 | public function __construct(Issue $model) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Count number of open issues |
||
| 31 | * |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | public function countOpenIssues() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Count number of closed issues |
||
| 41 | * |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function countClosedIssues() |
||
| 48 | } |
||
| 49 |
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..