Skip to content
Snippets Groups Projects
Commit 14b72b8c authored by totten's avatar totten
Browse files

EventPrinter - More aggressive type-hinting

parent e435f178
Branches
Tags
No related merge requests found
......@@ -16,7 +16,7 @@ class EventPrinter {
* @param mixed $callback
* @return string
*/
public static function formatName($callback) {
public static function formatName($callback): string {
$normalizeNamespace = function($symbol) {
return $symbol{0} === '\\' ? substr($symbol, 1) : $symbol;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment