From 2b12539327f4f5a6c5651b02542570c447018c0a Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 28 Aug 2024 10:54:47 +1200 Subject: [PATCH] API Strong typing for the view layer (#322) --- src/Models/Link.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Models/Link.php b/src/Models/Link.php index 6915bc61..e20a90d3 100644 --- a/src/Models/Link.php +++ b/src/Models/Link.php @@ -248,10 +248,8 @@ public function getData(): array * * This is returned when you access a link as $LinkRelation or $Me rather * than <% with LinkRelation %> - * - * @return DBHTMLText */ - public function forTemplate() + public function forTemplate(): string { // First look for a subclass of the email template e.g. EmailLink.ss which may be defined // in a project. Fallback to using the generic Link.ss template which this module provides