Parameters renamed to simplify docblock

pull/530/head
fadrian06 1 year ago
parent 7f576f1180
commit eba7e7e7ce

@ -258,15 +258,10 @@ class Engine
$this->loader->register($name, $class, $params, $callback);
}
/**
* Unregisters a class to a framework method
*
* @param string $name Method Name
* @return void
*/
public function unregister(string $name): void
/** Unregisters a class to a framework method. */
public function unregister(string $methodName): void
{
$this->loader->unregister($name);
$this->loader->unregister($methodName);
}
/**

@ -113,16 +113,11 @@ class Flight
static::__callStatic('register', func_get_args());
}
/**
* Unregisters a class.
*
* @param string $name Method name
* @return void
*/
public static function unregister($name): void
{
static::__callStatic('unregister', func_get_args());
}
/** Unregisters a class. */
public static function unregister(string $methodName): void
{
static::__callStatic('unregister', func_get_args());
}
/**
* Handles calls to static methods.

Loading…
Cancel
Save