From 7886da63bf8e40f3e77f0f58b29e1de67aad1f91 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 28 Aug 2024 10:54:43 +1200 Subject: [PATCH] API Strong typing for the view layer (#160) --- 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); }