Skip to content
Permalink
Browse files

Fix undocumented false return value that was most likely an oversight.

  • Loading branch information...
dereuromark committed Nov 25, 2016
1 parent 177136c commit 0736f23c063713a573b7f0fa2e23fa4eaf1b129b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Routing/Router.php
@@ -458,7 +458,9 @@ public static function popRequest()
public static function getRequest($current = false)
{
if ($current) {
return end(static::$_requests);
$request = end(static::$_requests);
return $request ?: null;
}
return isset(static::$_requests[0]) ? static::$_requests[0] : null;

0 comments on commit 0736f23

Please sign in to comment.
You can’t perform that action at this time.