From 7973a2d09e86b65d6b6b63ca7840512988a67a0d Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 21 Oct 2024 13:38:01 +1300 Subject: [PATCH] FIX Use renamed validate method --- src/File.php | 2 +- src/Storage/DBFile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/File.php b/src/File.php index 03fca21b..b2a19c88 100644 --- a/src/File.php +++ b/src/File.php @@ -1180,7 +1180,7 @@ public function getAbsoluteSize() public function validate() { $result = ValidationResult::create(); - $this->File->validate($result, $this->Name); + $this->File->validateFilename($result, $this->Name); $this->extend('updateValidate', $result); return $result; } diff --git a/src/Storage/DBFile.php b/src/Storage/DBFile.php index 4c397d6f..5ea53c00 100644 --- a/src/Storage/DBFile.php +++ b/src/Storage/DBFile.php @@ -455,7 +455,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); }