Skip to content

Commit

Permalink
API Standardise extension hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 18, 2024
1 parent 88b6be5 commit 43f873f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function StripThumbnail()
public function validate()
{
$result = ValidationResult::create();
$this->extend('validate', $result);
$this->extend('updateValidate', $result);
return $result;
}

Expand Down

0 comments on commit 43f873f

Please sign in to comment.