Skip to content

Commit 5f42325

Browse files
committed
Don't trigger a recursive nesting call
1 parent 9991989 commit 5f42325

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

app/Models/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,6 @@ protected function asDateTime($value)
171171
return parent::asDateTime($value);
172172
}
173173

174-
return $this->asImmutableDateTime($value);
174+
return parent::asDateTime($value)->toImmutable();
175175
}
176176
}

app/Models/Traits/WithImmutableDates.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)