Skip to content

Commit f10992c

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

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
@@ -148,7 +148,7 @@ public function setValidateSanitizeRelationshipWith( callable $validateSanitizeR
148148
*/
149149

150150
public function getValidateSanitizeRelationshipWith(): callable {
151-
return $this->validateSanitizeRelationshipWith ?? function( $thing ): ?Model {
151+
return $this->validateSanitizeRelationshipWith ?? static function( $thing ): ?Model {
152152
if ( null !== $thing && ! $thing instanceof Model ) {
153153
throw new InvalidArgumentException( 'Relationship value must be a valid value.' );
154154
}

0 commit comments

Comments
 (0)