Skip to content

Commit

Permalink
Merge pull request #668 from creative-commoners/pulls/3.0/validation-…
Browse files Browse the repository at this point in the history
…interface

API Update validate signature
  • Loading branch information
GuySartorelli authored Dec 17, 2024
2 parents 8ae974d + d07dfb2 commit 693995b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1167,10 +1167,7 @@ public function getAbsoluteSize()
return $this->File->getAbsoluteSize();
}

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

public function validate()
public function validate(): ValidationResult
{
$result = ValidationResult::create();
$this->extend('updateValidate', $result);
Expand Down

0 comments on commit 693995b

Please sign in to comment.