From 30a0712e58300d9679f2f0fbdc4fe42c7812a7e4 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Wed, 5 Jul 2023 12:12:25 +0200 Subject: [PATCH] update --- api.include.php | 5 +++-- api.php | 5 +++-- composer.lock | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/api.include.php b/api.include.php index 5bb6d07b..c6b909f2 100644 --- a/api.include.php +++ b/api.include.php @@ -3306,7 +3306,7 @@ public function fromGlobals(): ServerRequestInterface /** * {@inheritdoc} */ - public function fromArrays(array $server, array $headers = [], array $cookie = [], array $get = [], /*?array*/ $post = null, array $files = [], $body = null): ServerRequestInterface + public function fromArrays(array $server, array $headers = [], array $cookie = [], array $get = [], ?array $post = null, array $files = [], $body = null): ServerRequestInterface { $method = $this->getMethodFromEnv($server); $uri = $this->getUriFromEnvWithHTTP($server); @@ -3575,7 +3575,8 @@ public function fromArrays( array $server, array $headers = [], array $cookie = [], - array $get = [], /*?array*/ $post = null, + array $get = [], + ?array $post = null, array $files = [], $body = null ): ServerRequestInterface; diff --git a/api.php b/api.php index d54577c6..2c69cf96 100644 --- a/api.php +++ b/api.php @@ -3306,7 +3306,7 @@ public function fromGlobals(): ServerRequestInterface /** * {@inheritdoc} */ - public function fromArrays(array $server, array $headers = [], array $cookie = [], array $get = [], /*?array*/ $post = null, array $files = [], $body = null): ServerRequestInterface + public function fromArrays(array $server, array $headers = [], array $cookie = [], array $get = [], ?array $post = null, array $files = [], $body = null): ServerRequestInterface { $method = $this->getMethodFromEnv($server); $uri = $this->getUriFromEnvWithHTTP($server); @@ -3575,7 +3575,8 @@ public function fromArrays( array $server, array $headers = [], array $cookie = [], - array $get = [], /*?array*/ $post = null, + array $get = [], + ?array $post = null, array $files = [], $body = null ): ServerRequestInterface; diff --git a/composer.lock b/composer.lock index 26653700..5ac3d05f 100644 --- a/composer.lock +++ b/composer.lock @@ -385,5 +385,5 @@ "ext-pdo": "*" }, "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.0.0" }