Upgrade to 3.8.3

This commit is contained in:
Bastian Allgeier
2022-12-06 15:37:13 +01:00
parent f9e812cb0c
commit 8381ccb96c
69 changed files with 752 additions and 966 deletions

View File

@@ -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');
}
/**

View File

@@ -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);

View File

@@ -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
{