1 | <?php |
||
9 | class ListHosts extends BaseCommand |
||
10 | { |
||
11 | protected $signature = 'monitor:list |
||
12 | {--host= : Filter hosts by name} |
||
13 | {--check= : Filter checks by type}'; |
||
14 | |||
15 | protected $description = 'List all hosts with their checks'; |
||
16 | |||
17 | public function handle() |
||
24 | |||
25 | protected function getTableRows(Collection $hosts): array |
||
43 | |||
44 | protected function getChecksSummary(Host $host, ?string $typeFilter): string |
||
59 | } |
||
60 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.