From 3a2537460b3d16eaef0921887063f6964d746aaa Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 17 Dec 2024 09:54:56 +1300 Subject: [PATCH] API Update validate signature --- tests/php/LeftAndMainTest/MyTree.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/php/LeftAndMainTest/MyTree.php b/tests/php/LeftAndMainTest/MyTree.php index 8fe91cd4e..a229097e6 100644 --- a/tests/php/LeftAndMainTest/MyTree.php +++ b/tests/php/LeftAndMainTest/MyTree.php @@ -4,6 +4,7 @@ use SilverStripe\ORM\DataObject; use SilverStripe\Dev\TestOnly; +use SilverStripe\Core\Validation\ValidationResult; class MyTree extends DataObject implements TestOnly { @@ -15,7 +16,7 @@ class MyTree extends DataObject implements TestOnly 'Content' => 'Varchar' ]; - public function validate() + public function validate(): ValidationResult { $validationResult = parent::validate(); if ($this->Content === static::INVALID_CONTENT) {