Skip to content

Commit

Permalink
Fix compatibility of __toString for php < 8
Browse files Browse the repository at this point in the history
  • Loading branch information
richardDobron committed Jun 25, 2022
1 parent 1afd099 commit ed351b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fbt/Runtime/Shared/InlineFbtResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public function __construct(
$this->contents = $contents;
}

public function __toString()
public function __toString(): string
{
return em($this->contents, $this->inlineMode, $this->translation, $this->hash);
return (string) em($this->contents, $this->inlineMode, $this->translation, $this->hash);
}
}

0 comments on commit ed351b5

Please sign in to comment.