| 1 | <?php |
||
| 11 | class UpdateCloudAssetsTask extends BuildTask |
||
| 12 | { |
||
| 13 | protected $title = 'Cloud Assets: Update All Files'; |
||
| 14 | protected $description = 'Simply calls updateCloudStatus on every file in the db. Allows you to get a new server or development environment synced up easily.'; |
||
| 15 | |||
| 16 | |||
| 17 | public function run($request) { |
||
| 32 | |||
| 33 | } |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.