From 3834ad7e005ef17e2bd1f40cf7828981207a08dd Mon Sep 17 00:00:00 2001 From: Matyas Novak Date: Fri, 20 May 2022 11:56:09 +0200 Subject: [PATCH] PHP 8.1 compatibility - HttpRequest --- src/http/httprequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/httprequest.php b/src/http/httprequest.php index e53b6bb4..91aae2d3 100644 --- a/src/http/httprequest.php +++ b/src/http/httprequest.php @@ -567,7 +567,7 @@ function getRequestMethod(){ if(isset($GLOBALS["_SERVER"]["REQUEST_METHOD"])){ $out = $GLOBALS["_SERVER"]["REQUEST_METHOD"]; - if($out == "POST" && ($_method = strtoupper($this->getVar("_method","PG")))){ + if($out == "POST" && ($_method = strtoupper((string) $this->getVar("_method","PG")))){ $out = in_array($_method,array("DELETE","PUT")) ? $_method : $out; } return $out;