diff --git a/stubs/console.stub b/stubs/console.stub index 7b87809..63b5828 100644 --- a/stubs/console.stub +++ b/stubs/console.stub @@ -10,7 +10,7 @@ class {{ class }} extends Command protected $description = 'Command description'; - public function handle() + public function handle(): void { // } diff --git a/stubs/factory.stub b/stubs/factory.stub index f0a576b..89c211d 100644 --- a/stubs/factory.stub +++ b/stubs/factory.stub @@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Factories\Factory; class {{ model }}Factory extends Factory { - public function definition() + public function definition(): array { return [ // diff --git a/stubs/job.queued.stub b/stubs/job.queued.stub index c8eca72..54eda95 100644 --- a/stubs/job.queued.stub +++ b/stubs/job.queued.stub @@ -16,7 +16,7 @@ class {{ class }} implements ShouldQueue { } - public function handle() + public function handle(): void { } } diff --git a/stubs/job.stub b/stubs/job.stub index 8f3eb88..85bb531 100644 --- a/stubs/job.stub +++ b/stubs/job.stub @@ -13,7 +13,7 @@ class {{ class }} { } - public function handle() + public function handle(): void { } } diff --git a/stubs/listener.queued.stub b/stubs/listener.queued.stub new file mode 100644 index 0000000..1f16e71 --- /dev/null +++ b/stubs/listener.queued.stub @@ -0,0 +1,21 @@ +