From 880241b02373fbac8e7038b68f031190416408b4 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 23 Aug 2024 09:40:54 +1200 Subject: [PATCH] API Strong typing for the view layer --- 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