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

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