mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09: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 = [];
|
protected $params = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user