Skip to content

Commit

Permalink
fix anonymous function in runCaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi Hosseinzade committed Dec 31, 2018
1 parent 7b59beb commit 2e2f90d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# v1.1.1

* fix anonymous function in runCaller

# v1.1.0

* add run callable methods
Expand Down
2 changes: 2 additions & 0 deletions src/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public function runCaller($call, $args = [])
return call_user_func_array([$class, $method], $args);
}
}
} elseif (is_callable($call)) {
return call_user_func_array($call, $args);
}
}
}

0 comments on commit 2e2f90d

Please sign in to comment.