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); $this->loader->register($name, $class, $params, $callback);
} }
/** /** Unregisters a class to a framework method. */
* Unregisters a class to a framework method public function unregister(string $methodName): void
*
* @param string $name Method Name
* @return void
*/
public function unregister(string $name): void
{ {
$this->loader->unregister($name); $this->loader->unregister($methodName);
} }
/** /**

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

Loading…
Cancel
Save