From 43f873febcad4208bad7a11491f0b24cea0dfc32 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 15 Aug 2024 16:50:05 +1200 Subject: [PATCH] API Standardise extension hooks --- src/File.php | 2 +- src/Folder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/File.php b/src/File.php index b1da31e8..081fd642 100644 --- a/src/File.php +++ b/src/File.php @@ -1180,7 +1180,7 @@ public function validate() { $result = ValidationResult::create(); $this->File->validate($result, $this->Name); - $this->extend('validate', $result); + $this->extend('updateValidate', $result); return $result; } diff --git a/src/Folder.php b/src/Folder.php index e9e1c78d..1a6041c5 100644 --- a/src/Folder.php +++ b/src/Folder.php @@ -339,7 +339,7 @@ public function StripThumbnail() public function validate() { $result = ValidationResult::create(); - $this->extend('validate', $result); + $this->extend('updateValidate', $result); return $result; }