We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 775b74a commit a1e9800Copy full SHA for a1e9800
src/Data.php
@@ -53,7 +53,7 @@ public static function from($data): static
53
*/
54
public function fill(array $data): static
55
{
56
- $this->beforeFill($data);
+ $data = $this->beforeFill($data);
57
if (empty($data)) {
58
return $this;
59
}
@@ -178,8 +178,9 @@ protected function isArrayAble($data): bool
178
return $data instanceof ArrayAble || is_object($data) && method_exists($data, 'toArray');
179
180
181
- protected function beforeFill(array $data): void
+ protected function beforeFill(array $data): array
182
183
+ return $data;
184
185
186
protected function afterFill(array $data)
0 commit comments