mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 18:44:00 +08:00
Typehint event in console scheduling test case
This commit is contained in:
parent
2164b82b80
commit
0bd3dcec39
|
@ -12,6 +12,7 @@ namespace Flarum\Tests\integration\extenders;
|
|||
use Flarum\Console\AbstractCommand;
|
||||
use Flarum\Extend;
|
||||
use Flarum\Testing\integration\ConsoleTestCase;
|
||||
use Illuminate\Console\Scheduling\Event;
|
||||
|
||||
class ConsoleTest extends ConsoleTestCase
|
||||
{
|
||||
|
@ -63,7 +64,7 @@ class ConsoleTest extends ConsoleTestCase
|
|||
{
|
||||
$this->extend(
|
||||
(new Extend\Console())
|
||||
->schedule('cache:clear', function ($event) {
|
||||
->schedule('cache:clear', function (Event $event) {
|
||||
$event->everyMinute();
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user