TranslationContainer::__construct() accepts float and int too (they can be casted to string)

This commit is contained in:
Dylan K. Taylor 2019-12-12 16:19:04 +00:00
parent 77795ae3bc
commit 00888fdc55

View File

@ -32,7 +32,7 @@ class TranslationContainer extends TextContainer{
/** /**
* @param string $text * @param string $text
* @param string[] $params * @param (float|int|string)[] $params
*/ */
public function __construct(string $text, array $params = []){ public function __construct(string $text, array $params = []){
parent::__construct($text); parent::__construct($text);