Apply union types in some places (BC breaks)

This commit is contained in:
Dylan K. Taylor
2022-11-23 14:03:35 +00:00
parent 23ae0c7cac
commit 3b6ff3c42b
13 changed files with 30 additions and 83 deletions

View File

@ -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){