From 5ab5700131c89c034046941dde95aa26ed3427df Mon Sep 17 00:00:00 2001 From: rubenvanassche Date: Wed, 27 Oct 2021 15:22:35 +0000 Subject: [PATCH] Fix styling --- tests/DataTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/DataTest.php b/tests/DataTest.php index d52a9e479..4da1e7a73 100644 --- a/tests/DataTest.php +++ b/tests/DataTest.php @@ -618,14 +618,14 @@ public function it_can_create_a_data_object_from_a_model() /** @test */ public function it_can_add_the_with_data_trait_to_a_request() { - $formRequest = new class extends FormRequest{ + $formRequest = new class() extends FormRequest { use WithData; public string $dataClass = SimpleData::class; }; $formRequest->replace([ - 'string' => 'Hello World' + 'string' => 'Hello World', ]); $data = $formRequest->getData(); @@ -636,14 +636,14 @@ public function it_can_add_the_with_data_trait_to_a_request() /** @test */ public function it_can_add_the_with_data_trait_to_a_model() { - $model = new class extends Model { + $model = new class() extends Model { use WithData; protected string $dataClass = SimpleData::class; }; $model->fill([ - 'string' => 'Hello World' + 'string' => 'Hello World', ]); $data = $model->getData(); @@ -654,13 +654,13 @@ public function it_can_add_the_with_data_trait_to_a_model() /** @test */ public function it_can_define_the_with_data_trait_data_class_by_method() { - $arrayable = new class implements Arrayable { + $arrayable = new class() implements Arrayable { use WithData; public function toArray() { return [ - 'string' => 'Hello World' + 'string' => 'Hello World', ]; }