Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / var-dumper / Caster / CutStub.php
index 61140eb361d9f2ef0509c4d5bbcd8097394a95d6..690338f542d97a8ad4f7bfe4f79cb3ebe20857ca 100644 (file)
@@ -24,17 +24,17 @@ class CutStub extends Stub
     {
         $this->value = $value;
 
-        switch (gettype($value)) {
+        switch (\gettype($value)) {
             case 'object':
                 $this->type = self::TYPE_OBJECT;
-                $this->class = get_class($value);
+                $this->class = \get_class($value);
                 $this->cut = -1;
                 break;
 
             case 'array':
                 $this->type = self::TYPE_ARRAY;
                 $this->class = self::ARRAY_ASSOC;
-                $this->cut = $this->value = count($value);
+                $this->cut = $this->value = \count($value);
                 break;
 
             case 'resource':
@@ -51,7 +51,7 @@ class CutStub extends Stub
             case 'string':
                 $this->type = self::TYPE_STRING;
                 $this->class = preg_match('//u', $value) ? self::STRING_UTF8 : self::STRING_BINARY;
-                $this->cut = self::STRING_BINARY === $this->class ? strlen($value) : mb_strlen($value, 'UTF-8');
+                $this->cut = self::STRING_BINARY === $this->class ? \strlen($value) : mb_strlen($value, 'UTF-8');
                 $this->value = '';
                 break;
         }