Skip to content

Commit

Permalink
Change callback PhpDoc type to callable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter Henderickx committed Jul 28, 2021
1 parent 0ed1541 commit 11a5826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function getData($template = null)
/**
* Register a new template function.
* @param string $name;
* @param callback $callback;
* @param callable $callback;
* @return Engine
*/
public function registerFunction($name, $callback)
Expand Down
2 changes: 1 addition & 1 deletion src/Template/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Functions
/**
* Add a new template function.
* @param string $name;
* @param callback $callback;
* @param callable $callback;
* @return Functions
*/
public function add($name, $callback)
Expand Down

0 comments on commit 11a5826

Please sign in to comment.