Upgrade to 3.8.3
This commit is contained in:
@@ -46,15 +46,15 @@ class Body
|
||||
*/
|
||||
public function contents(): string|array
|
||||
{
|
||||
if ($this->contents === null) {
|
||||
if (empty($_POST) === false) {
|
||||
$this->contents = $_POST;
|
||||
} else {
|
||||
$this->contents = file_get_contents('php://input');
|
||||
}
|
||||
if ($this->contents !== null) {
|
||||
return $this->contents;
|
||||
}
|
||||
|
||||
return $this->contents;
|
||||
if (empty($_POST) === false) {
|
||||
return $this->contents = $_POST;
|
||||
}
|
||||
|
||||
return $this->contents = file_get_contents('php://input');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -33,7 +33,7 @@ class Query
|
||||
{
|
||||
if ($data === null) {
|
||||
$this->data = $_GET;
|
||||
} elseif (is_array($data)) {
|
||||
} elseif (is_array($data) === true) {
|
||||
$this->data = $data;
|
||||
} else {
|
||||
parse_str($data, $parsed);
|
||||
|
@@ -207,7 +207,9 @@ class Uri
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the domain without scheme, path or query
|
||||
* Returns the domain without scheme, path or query.
|
||||
* Includes auth part when not empty.
|
||||
* Includes port number when different from 80 or 443.
|
||||
*/
|
||||
public function domain(): string|null
|
||||
{
|
||||
|
Reference in New Issue
Block a user