From e9422746733bfb55ac55f3a15640e94fe01447cc Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 21 Dec 2016 14:40:17 -0600 Subject: [PATCH] reverse check --- src/Illuminate/Routing/Route.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index b4f4ba7fb9f9..dbb6c1e18642 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -294,11 +294,11 @@ public function hasParameters() */ public function hasParameter($name) { - if (! $this->hasParameters()) { - return false; + if ($this->hasParameters()) { + return array_key_exists($name, $this->parameters()); } - return array_key_exists($name, $this->parameters()); + return false; } /**