Skip to content

Commit

Permalink
Merge pull request #3041 from creative-commoners/pulls/6.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 25f5f2c + ca3ed03 commit f62cfe3
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 f62cfe3

Please sign in to comment.