From bf16f38a3767819343b4ddacf6b61ebbf55c9d23 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 --- src/Illuminate/Bus/Events/BatchDispatched.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/Illuminate/Bus/Events/BatchDispatched.php b/src/Illuminate/Bus/Events/BatchDispatched.php index b9a161adb48c..2f654ad365b5 100644 --- a/src/Illuminate/Bus/Events/BatchDispatched.php +++ b/src/Illuminate/Bus/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, + ) { } }