Browse Source

Remove redundant parentheses

Adam Halfar 1 year ago
parent
commit
80d3c1bf30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/ServerRequest.php

+ 1 - 1
src/Http/ServerRequest.php

@@ -377,7 +377,7 @@ class ServerRequest implements ServerRequestInterface
     {
         if ($this->trustProxy && $this->getEnv('HTTP_X_FORWARDED_FOR')) {
             $addresses = array_map('trim', explode(',', (string)$this->getEnv('HTTP_X_FORWARDED_FOR')));
-            $trusted = ($this->trustedProxies !== []);
+            $trusted = $this->trustedProxies !== [];
             $n = count($addresses);
 
             if ($trusted) {