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

Commit 38516b7

Browse files
committed
allow to pass any value
1 parent 4c0ec01 commit 38516b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Traits/WithModelMapping.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ trait WithModelMapping
1111
/**
1212
* Maps your model attributes to local class properties.
1313
*
14-
* @param Model|null $model
15-
* @param \Closure|null $failure
14+
* @param Model|null $model
15+
* @param mixed $failure
1616
*
1717
* @return void
1818
*/
19-
public function mapModelAttributes(?Model $model = null, ?\Closure $failure = null): void
19+
public function mapModelAttributes(?Model $model = null, mixed $failure = null): void
2020
{
2121
if (! is_null($model)) {
2222
$toIgnore = config('model-mapper.ignore_attributes');

0 commit comments

Comments
 (0)