mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Apply union types in some places (BC breaks)
This commit is contained in:
@ -85,7 +85,7 @@ class PluginDescription{
|
||||
/**
|
||||
* @param string|mixed[] $yamlString
|
||||
*/
|
||||
public function __construct($yamlString){
|
||||
public function __construct(array|string $yamlString){
|
||||
if(is_string($yamlString)){
|
||||
$map = yaml_parse($yamlString);
|
||||
if($map === false){
|
||||
|
Reference in New Issue
Block a user