From 419a9fbc2693c6530a43b7c6deae0d30a63025da Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 21 Oct 2024 12:54:33 +1300 Subject: [PATCH] MNT Fix broken merge-up --- src/Storage/DBFile.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Storage/DBFile.php b/src/Storage/DBFile.php index 4c397d6f..d9157667 100644 --- a/src/Storage/DBFile.php +++ b/src/Storage/DBFile.php @@ -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 *