summaryrefslogtreecommitdiffstats
path: root/src/Router/Runner/Callback.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Router/Runner/Callback.php')
-rw-r--r--src/Router/Runner/Callback.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Router/Runner/Callback.php b/src/Router/Runner/Callback.php
index 7f4c457..8fa8c0e 100644
--- a/src/Router/Runner/Callback.php
+++ b/src/Router/Runner/Callback.php
@@ -29,6 +29,6 @@ class Callback extends Runner
throw new \RuntimeException("'fn' property of route shoud be a callable");
}
- return call_user_func($callback, $request, $response);
+ return $callback($request, $response);
}
}