Skip to content

Commit

Permalink
Update stub to remove unused trait imports (#52877)
Browse files Browse the repository at this point in the history
* update stub to remove unused traits

* update test
  • Loading branch information
lombervid authored Sep 22, 2024
1 parent abf86b0 commit 33912a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/Illuminate/Foundation/Console/stubs/job.queued.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
3 changes: 0 additions & 3 deletions tests/Integration/Generators/JobMakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 33912a9

Please sign in to comment.