Skip to content

Commit 20e00ef

Browse files
committed
Php8 deprication warning
1 parent 7dd176a commit 20e00ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pecee/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function __construct()
133133
if($url !== null){
134134
$this->setUrl(new Url($url));
135135
}else{
136-
$this->setUrl(new Url(urldecode($this->getHeader('request-uri'))));
136+
$this->setUrl(new Url(urldecode((string)$this->getHeader('request-uri'))));
137137
}
138138
$this->setContentType((string)$this->getHeader('content-type'));
139139
$this->setMethod((string)($_POST[static::FORCE_METHOD_KEY] ?? $this->getHeader('request-method')));

0 commit comments

Comments
 (0)