1 | <?php |
||
7 | class CreateUser extends Command |
||
8 | { |
||
9 | /** |
||
10 | * The name and signature of the console command. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $signature = 'backpack:base:user |
||
15 | {--N|name= : The name of the new user} |
||
16 | {--E|email= : The user\'s email address} |
||
17 | {--P|password= : User\'s password} |
||
18 | {--encrypt=true : Is the user\'s password already encrypted}'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Create a new user'; |
||
26 | |||
27 | /** |
||
28 | * Execute the console command. |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function handle() |
||
64 | } |
||
65 |
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.