From c47a54b82484d0c3504ee9b1490630f148ca21b7 Mon Sep 17 00:00:00 2001 From: Joe Sandford-Hughes Date: Wed, 18 Sep 2024 15:43:34 +0100 Subject: [PATCH] adds missing types --- stubs/console.stub | 2 +- stubs/factory.stub | 2 +- stubs/job.queued.stub | 2 +- stubs/job.stub | 2 +- stubs/listener.queued.stub | 21 +++++++++++++++++++++ stubs/listener.typed.queued.stub | 22 ++++++++++++++++++++++ stubs/listener.typed.stub | 20 ++++++++++++++++++++ stubs/policy.stub | 14 +++++++------- stubs/provider.stub | 4 ++-- stubs/resource-collection.stub | 2 +- stubs/resource.stub | 2 +- 11 files changed, 78 insertions(+), 15 deletions(-) create mode 100644 stubs/listener.queued.stub create mode 100644 stubs/listener.typed.queued.stub create mode 100644 stubs/listener.typed.stub 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 @@ +