Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/validator/Constraints/Ip.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/symfony/validator/Constraints/Ip.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/validator/Constraints/Ip.php Thu Feb 28 13:11:55 2019 +0000 @@ -46,7 +46,7 @@ const INVALID_IP_ERROR = 'b1b427ae-9f6f-41b0-aa9b-84511fbb3c5b'; - protected static $versions = array( + protected static $versions = [ self::V4, self::V6, self::ALL, @@ -62,11 +62,11 @@ self::V4_ONLY_PUBLIC, self::V6_ONLY_PUBLIC, self::ALL_ONLY_PUBLIC, - ); + ]; - protected static $errorNames = array( + protected static $errorNames = [ self::INVALID_IP_ERROR => 'INVALID_IP_ERROR', - ); + ]; public $version = self::V4; @@ -79,7 +79,7 @@ { parent::__construct($options); - if (!in_array($this->version, self::$versions)) { + if (!\in_array($this->version, self::$versions)) { throw new ConstraintDefinitionException(sprintf('The option "version" must be one of "%s"', implode('", "', self::$versions))); } }