| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function handle() |
||
| 38 | { |
||
| 39 | if (empty($this->locales)) { |
||
| 40 | throw new Exception('No locales set for the cache rebuild. Make sure you set your locales in the squanto config file'); |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->info('Clear and rebuild squanto cache for locales ['.implode(',', $this->locales).'].'); |
||
| 44 | |||
| 45 | $this->cacher->delete()->write(); |
||
| 46 | |||
| 47 | $this->info('Translation cache refreshed.'); |
||
| 48 | $this->output->writeln(''); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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..