From 83332024dfa5b4dbba7a68ff782ccd551a8f4f2b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 29 Jun 2021 20:07:39 +0100 Subject: [PATCH] TranslationContainer: remove __toString() it doesn't make any sense to use TranslationContainer in this way. --- src/lang/TranslationContainer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lang/TranslationContainer.php b/src/lang/TranslationContainer.php index a16095d32..3e2905f6f 100644 --- a/src/lang/TranslationContainer.php +++ b/src/lang/TranslationContainer.php @@ -58,8 +58,4 @@ final class TranslationContainer{ public function getParameter(int $i) : ?string{ return $this->params[$i] ?? null; } - - public function __toString() : string{ - return $this->getText(); - } }