GeneratorManager: removed unused parameter from getGenerator()

This commit is contained in:
Dylan K. Taylor 2021-10-11 16:18:38 +01:00
parent fa93a8d78f
commit 859cdfa5d2
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -77,12 +77,10 @@ final class GeneratorManager{
/**
* 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
* @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;
}