From 33912a9f314ed6d2c16005a7a4def2e6869a90c3 Mon Sep 17 00:00:00 2001 From: lombervid Date: Sun, 22 Sep 2024 09:05:17 -0600 Subject: [PATCH] Update stub to remove unused trait imports (#52877) * update stub to remove unused traits * update test --- src/Illuminate/Foundation/Console/stubs/job.queued.stub | 3 --- tests/Integration/Generators/JobMakeCommandTest.php | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/Illuminate/Foundation/Console/stubs/job.queued.stub b/src/Illuminate/Foundation/Console/stubs/job.queued.stub index eb18549da29f..d86ccdebdf10 100644 --- a/src/Illuminate/Foundation/Console/stubs/job.queued.stub +++ b/src/Illuminate/Foundation/Console/stubs/job.queued.stub @@ -3,10 +3,7 @@ namespace {{ namespace }}; use Illuminate\Contracts\Queue\ShouldQueue; -use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Foundation\Queue\Queueable; -use Illuminate\Queue\InteractsWithQueue; -use Illuminate\Queue\SerializesModels; class {{ class }} implements ShouldQueue { diff --git a/tests/Integration/Generators/JobMakeCommandTest.php b/tests/Integration/Generators/JobMakeCommandTest.php index b1566c796c0c..fc7b42a54849 100644 --- a/tests/Integration/Generators/JobMakeCommandTest.php +++ b/tests/Integration/Generators/JobMakeCommandTest.php @@ -17,10 +17,7 @@ public function testItCanGenerateJobFile() $this->assertFileContains([ 'namespace App\Jobs;', 'use Illuminate\Contracts\Queue\ShouldQueue;', - 'use Illuminate\Foundation\Bus\Dispatchable;', 'use Illuminate\Foundation\Queue\Queueable;', - 'use Illuminate\Queue\InteractsWithQueue;', - 'use Illuminate\Queue\SerializesModels;', 'class FooCreated implements ShouldQueue', 'use Queueable;', ], 'app/Jobs/FooCreated.php');