Skip to content

Commit

Permalink
Merge branch '4.0' into 4
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 18, 2024
2 parents 8c97af8 + 5816743 commit 58045a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 58045a0

Please sign in to comment.