Skip to content

Commit

Permalink
API Strong typing for the view layer (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 27, 2024
1 parent 802f4a5 commit 7886da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ORM/FieldType/DBLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SilverStripe\ElementalBannerBlock\ORM\FieldType;

use SilverStripe\ElementalBannerBlock\Form\BlockLinkField;
use SilverStripe\Forms\FormField;
use SilverStripe\ORM\FieldType\DBText;

/**
Expand All @@ -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);
}
Expand Down

0 comments on commit 7886da6

Please sign in to comment.