Skip to content

Commit

Permalink
API Update validate signature
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 16, 2024
1 parent 8ae974d commit d07dfb2
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 d07dfb2

Please sign in to comment.