Skip to content

Commit

Permalink
reverse check
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 21, 2016
1 parent a7f60cc commit e942274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit e942274

Please sign in to comment.