mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 13:35:29 +00:00
RegistryTrait: use native parameter types for __callStatic() arguments (#5944)
This commit is contained in:
parent
361626d236
commit
fa9bba470c
@ -98,13 +98,10 @@ trait RegistryTrait{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param mixed[] $arguments
|
||||
* @phpstan-param list<mixed> $arguments
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
public static function __callStatic($name, $arguments){
|
||||
public static function __callStatic(string $name, array $arguments) : object{
|
||||
if(count($arguments) > 0){
|
||||
throw new \ArgumentCountError("Expected exactly 0 arguments, " . count($arguments) . " passed");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user