| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 14 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | View Code Duplication | public function handle() |
|
| 25 | { |
||
| 26 | $snapshots = $this->snapshotRepository->get(); |
||
| 27 | |||
| 28 | $snapshot = $this->chooseSnapshot('Which snapshot number would like to load?', $snapshots); |
||
| 29 | |||
| 30 | if (! $snapshot) { |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | $snapshot->load(); |
||
| 35 | |||
| 36 | $this->info('Snapshot loaded!'); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
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..