| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 72 | public function countProjectsByStatus($status) |
||
| 73 | { |
||
| 74 | View Code Duplication | if ($this->model->isManager() || $this->model->isAdmin()) { |
|
|
1 ignored issue
–
show
|
|||
| 75 | return app()->make(Project::class)->countProjectsByStatus($status); |
||
| 76 | } |
||
| 77 | |||
| 78 | return $this->model->projects()->status($status)->count(); |
||
| 79 | } |
||
| 80 | } |
||
| 81 |
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..