Skip to content

Commit 78b0ac6

Browse files
committed
refactore: remove @ that does not make sense, and cast to string
Because it might be false.
1 parent 1a95c89 commit 78b0ac6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/SiteURIFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function parseRequestURI(): string
178178
*/
179179
private function parseQueryString(): string
180180
{
181-
$query = $this->superglobals->server('QUERY_STRING') ?? @getenv('QUERY_STRING');
181+
$query = $this->superglobals->server('QUERY_STRING') ?? (string) getenv('QUERY_STRING');
182182

183183
if (trim($query, '/') === '') {
184184
return '/';

0 commit comments

Comments
 (0)