Skip to content

Commit

Permalink
refactore: remove @ that does not make sense, and cast to string
Browse files Browse the repository at this point in the history
Because it might be false.
  • Loading branch information
kenjis committed Jul 24, 2023
1 parent 1a95c89 commit 78b0ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/SiteURIFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function parseRequestURI(): string
*/
private function parseQueryString(): string
{
$query = $this->superglobals->server('QUERY_STRING') ?? @getenv('QUERY_STRING');
$query = $this->superglobals->server('QUERY_STRING') ?? (string) getenv('QUERY_STRING');

if (trim($query, '/') === '') {
return '/';
Expand Down

0 comments on commit 78b0ac6

Please sign in to comment.