Skip to content

Commit

Permalink
MNT Fix broken merge-up
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 20, 2024
1 parent a237a6c commit 419a9fb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Storage/DBFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,19 @@ protected function assertFilenameValid(string $filename): void
}
}

/**
* Hook to validate this record against a validation result
*
* @param null|string $filename Optional filename to validate. If omitted, the current value is validated.
*/
public function validate(ValidationResult $result, ?string $filename = null): bool
{
Deprecation::withSuppressedNotice(function () {
Deprecation::notice('2.4.0', 'Use validateFilename() instead');
});
return $this->validateFilename($result, $filename);
}

/**
* Hook to validate this record against a validation result
*
Expand Down

0 comments on commit 419a9fb

Please sign in to comment.