From 54235a5ee670cab859cdc756fbd4185dfc493aaa Mon Sep 17 00:00:00 2001 From: Aidan Casey Date: Fri, 16 Sep 2022 08:40:29 -0400 Subject: [PATCH] Removes array unpacking during DTO casting. --- src/Casters/DataTransferObjectCaster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Casters/DataTransferObjectCaster.php b/src/Casters/DataTransferObjectCaster.php index 4f1913e9..6a0383d0 100644 --- a/src/Casters/DataTransferObjectCaster.php +++ b/src/Casters/DataTransferObjectCaster.php @@ -20,6 +20,6 @@ public function cast(mixed $value): DataTransferObject } } - return new $this->classNames[0](...$value); + return new $this->classNames[0]($value); } }