1 | <?php |
||
18 | class AdminCommand extends Command |
||
19 | { |
||
20 | /** |
||
21 | * The name and signature of the console command. |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $signature = 'rbac:admin'; |
||
25 | |||
26 | /** |
||
27 | * The console command description. |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $description = 'Assign Admin role for existing special user.'; |
||
31 | |||
32 | /** |
||
33 | * @var RbacUserInterface|ParentUser |
||
34 | */ |
||
35 | protected $userModelClass; |
||
36 | |||
37 | /** |
||
38 | * @var int |
||
39 | */ |
||
40 | protected $adminUserId; |
||
41 | |||
42 | /** |
||
43 | * AdminCommand constructor. |
||
44 | */ |
||
45 | public function __construct() |
||
52 | |||
53 | /** |
||
54 | * Execute the console command. |
||
55 | */ |
||
56 | public function handle() |
||
81 | } |
||
82 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: