Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / dependency-injection / LazyProxy / ProxyHelper.php
index 84686efff5d6a2417bf0231ce081873bdd4882e4..fb21ba2e4e4b8c4f67c3b3a81303c6d03c61e681 100644 (file)
@@ -39,7 +39,7 @@ class ProxyHelper
         if (!$type) {
             return;
         }
-        if (!is_string($type)) {
+        if (!\is_string($type)) {
             $name = $type instanceof \ReflectionNamedType ? $type->getName() : $type->__toString();
 
             if ($type->isBuiltin()) {
@@ -62,17 +62,4 @@ class ProxyHelper
             return $prefix.$parent->name;
         }
     }
-
-    private static function export($value)
-    {
-        if (!is_array($value)) {
-            return var_export($value, true);
-        }
-        $code = array();
-        foreach ($value as $k => $v) {
-            $code[] = sprintf('%s => %s', var_export($k, true), self::export($v));
-        }
-
-        return sprintf('array(%s)', implode(', ', $code));
-    }
 }