| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function handle() |
||
| 42 | { |
||
| 43 | $students = DB::table('examination_students as es') |
||
| 44 | ->select(DB::raw('count(*) as total'),'e2.*') |
||
| 45 | ->join('examination_students as e2','es.nsid','e2.nsid') |
||
| 46 | ->having('total','>',1) |
||
| 47 | ->groupBy('e2.st_no') |
||
| 48 | ->orderBy('e2.st_no') |
||
| 49 | ->get(); |
||
| 50 | $this->output->writeln(count($students).'entries found'); |
||
| 51 | |||
| 52 | foreach($students as $student){ |
||
| 53 | Examination_student::where('st_no',$student->st_no)->update(['nsid'=>'']); |
||
| 54 | $this->output->writeln($student->st_no.'removed'); |
||
| 55 | } |
||
| 58 |
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..