Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Removes array unpacking during DTO casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-casey committed Sep 16, 2022
1 parent 6f88c8b commit 54235a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Casters/DataTransferObjectCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public function cast(mixed $value): DataTransferObject
}
}

return new $this->classNames[0](...$value);
return new $this->classNames[0]($value);
}
}

0 comments on commit 54235a5

Please sign in to comment.