mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
TranslationContainer::__construct() accepts float and int too (they can be casted to string)
This commit is contained in:
parent
77795ae3bc
commit
00888fdc55
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user