Skip to content

Commit

Permalink
[12.x] use type declaration on property (#53970)
Browse files Browse the repository at this point in the history
* use type declaration on property

also use promoted property

* restore comment
  • Loading branch information
browner12 authored Dec 18, 2024
1 parent 8383bea commit bf16f38
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/Illuminate/Bus/Events/BatchDispatched.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,14 @@

class BatchDispatched
{
/**
* The batch instance.
*
* @var \Illuminate\Bus\Batch
*/
public $batch;

/**
* Create a new event instance.
*
* @param \Illuminate\Bus\Batch $batch
* @param \Illuminate\Bus\Batch $batch The batch instance.
* @return void
*/
public function __construct(Batch $batch)
{
$this->batch = $batch;
public function __construct(
public Batch $batch,
) {
}
}

0 comments on commit bf16f38

Please sign in to comment.