Skip to content

Commit bf16f38

Browse files
authored
[12.x] use type declaration on property (#53970)
* use type declaration on property also use promoted property * restore comment
1 parent 8383bea commit bf16f38

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/Illuminate/Bus/Events/BatchDispatched.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,14 @@
66

77
class BatchDispatched
88
{
9-
/**
10-
* The batch instance.
11-
*
12-
* @var \Illuminate\Bus\Batch
13-
*/
14-
public $batch;
15-
169
/**
1710
* Create a new event instance.
1811
*
19-
* @param \Illuminate\Bus\Batch $batch
12+
* @param \Illuminate\Bus\Batch $batch The batch instance.
2013
* @return void
2114
*/
22-
public function __construct(Batch $batch)
23-
{
24-
$this->batch = $batch;
15+
public function __construct(
16+
public Batch $batch,
17+
) {
2518
}
2619
}

0 commit comments

Comments
 (0)