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 5336a99 commit ca3ed03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ protected function onAfterDelete()
parent::onAfterDelete();
}

public function validate()
public function validate(): ValidationResult
{
$result = parent::validate();

Expand Down
2 changes: 1 addition & 1 deletion code/Model/VirtualPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function getSettingsFields()
return $fields;
}

public function validate()
public function validate(): ValidationResult
{
$result = parent::validate();

Expand Down

0 comments on commit ca3ed03

Please sign in to comment.