Skip to content

Commit

Permalink
Merge pull request RegrowthStudios#24 from RegrowthStudios/refactor/p…
Browse files Browse the repository at this point in the history
…hp7ise

Fix for middleware trait.
  • Loading branch information
Matthew Marshall authored Nov 6, 2016
2 parents bf1d20e + 7524803 commit 08254ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ protected function getParameter(string $parameterHandle, $default = null) : stri

$result = $this->request->getAttribute($parameterHandle, $param);

return $result ?? $default;
return is_null($result) ? $default : $result;
}
}

0 comments on commit 08254ab

Please sign in to comment.