Skip to content

Commit

Permalink
Merge branch '3.0' into 3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 18, 2024
2 parents e539373 + 693995b commit a2ef412
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 a2ef412

Please sign in to comment.