1 | <?php |
||
10 | class Kernel extends ConsoleKernel |
||
11 | { |
||
12 | /** |
||
13 | * The Artisan commands provided by your application. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $commands = [ |
||
18 | \App\Console\Commands\Inspire::class, |
||
19 | \App\Console\Commands\Permissions::class, |
||
20 | \App\Console\Commands\Persister::class, |
||
21 | \App\Console\Commands\MakeConfig::class, |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * Define the application's command schedule. |
||
26 | * |
||
27 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
28 | * @return void |
||
29 | */ |
||
30 | protected function schedule(Schedule $schedule) { |
||
43 | } |
||
44 |
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: