From 85dd0000e3cc2fd29b8a62fe776533b201b836e9 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 23 Aug 2024 09:32:22 +1200 Subject: [PATCH] API Strong typing for the view layer --- src/ORM/FieldType/DBLink.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ORM/FieldType/DBLink.php b/src/ORM/FieldType/DBLink.php index 9ddbce4..40e299a 100644 --- a/src/ORM/FieldType/DBLink.php +++ b/src/ORM/FieldType/DBLink.php @@ -3,6 +3,7 @@ namespace SilverStripe\ElementalBannerBlock\ORM\FieldType; use SilverStripe\ElementalBannerBlock\Form\BlockLinkField; +use SilverStripe\Forms\FormField; use SilverStripe\ORM\FieldType\DBText; /** @@ -11,7 +12,7 @@ */ class DBLink extends DBText { - public function scaffoldFormField($title = null, $params = null) + public function scaffoldFormField(?string $title = null, array $params = []): ?FormField { return BlockLinkField::create($this->name, $title); }