diff vendor/symfony/validator/Constraints/ImageValidator.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/ImageValidator.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/vendor/symfony/validator/Constraints/ImageValidator.php	Thu Feb 28 13:11:55 2019 +0000
@@ -34,11 +34,11 @@
             throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Image');
         }
 
-        $violations = count($this->context->getViolations());
+        $violations = \count($this->context->getViolations());
 
         parent::validate($value, $constraint);
 
-        $failed = count($this->context->getViolations()) !== $violations;
+        $failed = \count($this->context->getViolations()) !== $violations;
 
         if ($failed || null === $value || '' === $value) {
             return;
@@ -217,7 +217,7 @@
         }
 
         if ($constraint->detectCorrupted) {
-            if (!function_exists('imagecreatefromstring')) {
+            if (!\function_exists('imagecreatefromstring')) {
                 throw new RuntimeException('Corrupted images detection requires installed and enabled GD extension');
             }