Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit d8c3d48

Browse files
committed
apply rescue
1 parent 8e42e59 commit d8c3d48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Traits/LoopFunctions.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public function attributesToProperties(?Model $model = null, mixed $rescue = nul
2525
->each(
2626
fn ($value, $property) => $this->assignValue(
2727
$property,
28-
$model->{$property}
28+
$model->{$property},
29+
$rescue
2930
)
3031
);
3132
}

0 commit comments

Comments
 (0)