Skip to content

Commit

Permalink
NEW Validate DBFields
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 2, 2024
1 parent 6194844 commit 68b8743
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 @@ -1838,7 +1838,7 @@ public function flushMemberCache($memberIDs = null)
}
}

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 @@ -369,7 +369,7 @@ public function getSettingsFields()
return $fields;
}

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

Expand Down

0 comments on commit 68b8743

Please sign in to comment.