From ca3ed034b4d4ed0165623b806177d77a6827e67a Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 16 Dec 2024 19:23:22 +1300 Subject: [PATCH] API Update validate signature --- code/Model/SiteTree.php | 2 +- code/Model/VirtualPage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 033f48dc00..c269fa4693 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -1626,7 +1626,7 @@ protected function onAfterDelete() parent::onAfterDelete(); } - public function validate() + public function validate(): ValidationResult { $result = parent::validate(); diff --git a/code/Model/VirtualPage.php b/code/Model/VirtualPage.php index 5678422b0f..b3ade3f21d 100644 --- a/code/Model/VirtualPage.php +++ b/code/Model/VirtualPage.php @@ -381,7 +381,7 @@ public function getSettingsFields() return $fields; } - public function validate() + public function validate(): ValidationResult { $result = parent::validate();