Removed PHP 7 specific functionality.

This commit is contained in:
Simon Sessingø
2016-11-26 04:53:05 +01:00
parent 6213f2fb75
commit c1835152b6
6 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ class Input
*/
public function findPost($index, $defaultValue = null)
{
return $this->post[$index] ?? $defaultValue;
return isset($this->post[$index]) ? $this->post[$index] : $defaultValue;
}
/**
@@ -175,7 +175,7 @@ class Input
*/
public function findFile($index, $defaultValue = null)
{
return $this->file[$index] ?? $defaultValue;
return isset($this->file[$index]) ? $this->file[$index] : $defaultValue;
}
/**
@@ -187,7 +187,7 @@ class Input
*/
public function findGet($index, $defaultValue = null)
{
return $this->get[$index] ?? $defaultValue;
return isset($this->get[$index]) ? $this->get[$index] : $defaultValue;
}
/**
+1 -1
View File
@@ -225,7 +225,7 @@ class Request
public function __get($name)
{
return $this->data[$name] ?? null;
return isset($this->data[$name]) ? $this->data[$name] : null;
}
}