Skip to content

Commit

Permalink
API Strong typing for the view layer (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 27, 2024
1 parent 050df4a commit 2b12539
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Models/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b12539

Please sign in to comment.