Skip to content

Commit

Permalink
Merge pull request thephpleague#285 from vixducis/v3
Browse files Browse the repository at this point in the history
Change callback PhpDoc type to callable
  • Loading branch information
ragboyjr committed Jul 28, 2021
2 parents 0ed1541 + 11a5826 commit 9a55e71
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 9a55e71

Please sign in to comment.