From 8f28dc1b27ac235e43d652b78872f047c4400edb Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 16 Dec 2024 19:23:44 +1300 Subject: [PATCH] API Update validate signature --- src/Model/Subsite.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Model/Subsite.php b/src/Model/Subsite.php index a185a110..13c6bba2 100644 --- a/src/Model/Subsite.php +++ b/src/Model/Subsite.php @@ -36,6 +36,7 @@ use UnexpectedValueException; use SilverStripe\Core\ClassInfo; use SilverStripe\Forms\GridField\GridFieldAddExistingAutocompleter; +use SilverStripe\Core\Validation\ValidationResult; /** * A dynamically created subsite. SiteTree objects can now belong to a subsite. @@ -797,11 +798,7 @@ public function getLanguage() return i18n::get_locale(); } - /** - * - * @return \SilverStripe\Core\Validation\ValidationResult - */ - public function validate() + public function validate(): ValidationResult { $result = parent::validate(); if (!$this->Title) {