Skip to content

Commit

Permalink
missing return NULL if param not exists + short version of the IF stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnpdlk authored and staabm committed Dec 10, 2018
1 parent 3577f01 commit d9f74f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ public function getPostData(): array
*/
public function getRawServerValue(string $valueName)
{
if (isset($this->rawServerData[$valueName])) {
return $this->rawServerData[$valueName];
}
return $this->rawServerData[$valueName] ?? null;
}

/**
Expand Down

0 comments on commit d9f74f5

Please sign in to comment.