Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnathonKoster committed Feb 1, 2023
2 parents 9aa3ce8 + ca1dfaf commit c12c6c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DirectiveFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public function compile($name, $handler)
/**
* Register a new callback-enabled directive.
*
* @param string $name
* @param callable $handler
* @param string $name
* @param callable $handler
* @return void
*/
public function callback($name, $handler)
Expand Down Expand Up @@ -105,6 +105,7 @@ private function getCallbackClosure($name, $handler)
public static function invokeCallbackHandler($name, ...$args)
{
$handler = self::$callbackHandlers[$name];

return call_user_func($handler, ...$args);
}

Expand Down

0 comments on commit c12c6c8

Please sign in to comment.