From 898ad00a3f449f61192ba5ea22776072d91b9374 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 18 Dec 2024 15:34:35 -0600 Subject: [PATCH] [12.x] use type declaration on property (#53970) * use type declaration on property also use promoted property * restore comment --- Events/BatchDispatched.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Events/BatchDispatched.php b/Events/BatchDispatched.php index b9a161a..2f654ad 100644 --- a/Events/BatchDispatched.php +++ b/Events/BatchDispatched.php @@ -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, + ) { } }