Skip to content

Commit bf85514

Browse files
dpanta94lucatume
andauthored
Update ModelRelationshipDefinition.php
Co-authored-by: theAverageDev (Luca Tumedei) <luca@theaveragedev.com>
1 parent 5236008 commit bf85514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/ModelRelationshipDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function setHydrateWith( callable $hydrateWith ): self {
121121
*/
122122
public function getHydrateWith(): callable {
123123
// By default, it returns whats given.
124-
return $this->hydrateWith ?? fn( $value ) => $value;
124+
return $this->hydrateWith ?? static fn( $value ) => $value;
125125
}
126126

127127
/**

0 commit comments

Comments
 (0)