We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf85514 commit f10992cCopy full SHA for f10992c
src/Models/ModelRelationshipDefinition.php
@@ -148,7 +148,7 @@ public function setValidateSanitizeRelationshipWith( callable $validateSanitizeR
148
*/
149
150
public function getValidateSanitizeRelationshipWith(): callable {
151
- return $this->validateSanitizeRelationshipWith ?? function( $thing ): ?Model {
+ return $this->validateSanitizeRelationshipWith ?? static function( $thing ): ?Model {
152
if ( null !== $thing && ! $thing instanceof Model ) {
153
throw new InvalidArgumentException( 'Relationship value must be a valid value.' );
154
}
0 commit comments