Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Constraints / LuhnValidator.php
index 85e4d7621500245917fd2fb65734796559a525f0..554fc6f48b10be800c6085292eb623ecbd128d20 100644 (file)
@@ -49,7 +49,7 @@ class LuhnValidator extends ConstraintValidator
 
         // Work with strings only, because long numbers are represented as floats
         // internally and don't work with strlen()
-        if (!is_string($value) && !(is_object($value) && method_exists($value, '__toString'))) {
+        if (!\is_string($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
             throw new UnexpectedTypeException($value, 'string');
         }
 
@@ -65,7 +65,7 @@ class LuhnValidator extends ConstraintValidator
         }
 
         $checkSum = 0;
-        $length = strlen($value);
+        $length = \strlen($value);
 
         // Starting with the last digit and walking left, add every second
         // digit to the check sum