Skip to content

Commit

Permalink
Require value on set
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hoffmann committed Apr 10, 2017
1 parent 1013625 commit 8af7764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/ServerRequest.php
Expand Up @@ -1765,10 +1765,10 @@ public function getEnv($key, $default = null)
* Set a value to the request's environment data.
*
* @param string $key The key you want to write to.
* @param string|null $value Value to set. Default null.
* @param string $value Value to set
* @return $this
*/
public function setEnv($key, $value = null)
public function setEnv($key, $value)
{
$this->_environment[$key] = $value;
$this->clearDetectorCache();
Expand Down

0 comments on commit 8af7764

Please sign in to comment.