RegistryTrait: fixing use of method that doesn't belong to the trait

This commit is contained in:
Dylan K. Taylor 2020-05-18 11:40:02 +01:00
parent a91e895781
commit e96b082a54

View File

@ -92,7 +92,7 @@ trait RegistryTrait{
throw new \ArgumentCountError("Expected exactly 0 arguments, " . count($arguments) . " passed");
}
try{
return self::fromString($name);
return self::_registryFromString($name);
}catch(\InvalidArgumentException $e){
throw new \Error($e->getMessage(), 0, $e);
}