mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
GeneratorManager: removed unused parameter from getGenerator()
This commit is contained in:
parent
fa93a8d78f
commit
859cdfa5d2
@ -77,12 +77,10 @@ final class GeneratorManager{
|
|||||||
/**
|
/**
|
||||||
* Returns a class name of a registered Generator matching the given name.
|
* Returns a class name of a registered Generator matching the given name.
|
||||||
*
|
*
|
||||||
* @param bool $throwOnMissing @deprecated this is for backwards compatibility only
|
|
||||||
*
|
|
||||||
* @return string|null Name of class that extends Generator, or null if no generator is mapped to that name
|
* @return string|null Name of class that extends Generator, or null if no generator is mapped to that name
|
||||||
* @phpstan-return class-string<Generator>|null
|
* @phpstan-return class-string<Generator>|null
|
||||||
*/
|
*/
|
||||||
public function getGenerator(string $name, bool $throwOnMissing = false) : ?string{
|
public function getGenerator(string $name) : ?string{
|
||||||
return $this->list[strtolower($name)] ?? null;
|
return $this->list[strtolower($name)] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user