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); } }