1 | <?php |
||
8 | class Check extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'api-health:check {checkerClass}'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Run the given checker'; |
||
23 | |||
24 | /** |
||
25 | * Displays the result of the given checker. |
||
26 | * |
||
27 | * @return null |
||
28 | */ |
||
29 | public function handle() |
||
43 | } |
||
44 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.