summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/IpUtils.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-foundation/IpUtils.php')
-rw-r--r--vendor/symfony/http-foundation/IpUtils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/http-foundation/IpUtils.php b/vendor/symfony/http-foundation/IpUtils.php
index a1bfa90885..67d13e57aa 100644
--- a/vendor/symfony/http-foundation/IpUtils.php
+++ b/vendor/symfony/http-foundation/IpUtils.php
@@ -18,7 +18,7 @@ namespace Symfony\Component\HttpFoundation;
*/
class IpUtils
{
- private static $checkedIps = array();
+ private static $checkedIps = [];
/**
* This class should not be instantiated.
@@ -38,7 +38,7 @@ class IpUtils
public static function checkIp($requestIp, $ips)
{
if (!\is_array($ips)) {
- $ips = array($ips);
+ $ips = [$ips];
}
$method = substr_count($requestIp, ':') > 1 ? 'checkIp6' : 'checkIp4';