From c36d37e1d3e2b8b6d5a656b0c2d221df8d4ffe7c Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 26 Sep 2024 11:02:17 +1200 Subject: [PATCH] API Rename method --- src/Storage/DBFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Storage/DBFile.php b/src/Storage/DBFile.php index 26d758a4..335c8bf1 100644 --- a/src/Storage/DBFile.php +++ b/src/Storage/DBFile.php @@ -454,7 +454,7 @@ protected function isValidFilename(string $filename): bool protected function assertFilenameValid(string $filename): void { $result = new ValidationResult(); - $this->validate($result, $filename); + $this->validateFilename($result, $filename); if (!$result->isValid()) { throw new ValidationException($result); } @@ -466,7 +466,7 @@ protected function assertFilenameValid(string $filename): void * * @param null|string $filename Optional filename to validate. If omitted, the current value is validated. */ - public function validate(ValidationResult $result, ?string $filename = null): bool + public function validateFilename(ValidationResult $result, ?string $filename = null): bool { if (empty($filename)) { $filename = $this->getFilename();