Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / dependency-injection / Loader / Configurator / AbstractConfigurator.php
index 73ca320e3124716cbb557c7ae310b83d44552cef..d11347aeabe53b363e4827ccec025e52c1d2cc52 100644 (file)
@@ -28,10 +28,10 @@ abstract class AbstractConfigurator
     public function __call($method, $args)
     {
         if (method_exists($this, 'set'.$method)) {
-            return call_user_func_array(array($this, 'set'.$method), $args);
+            return \call_user_func_array(array($this, 'set'.$method), $args);
         }
 
-        throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_class($this), $method));
+        throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', \get_class($this), $method));
     }
 
     /**
@@ -44,7 +44,7 @@ abstract class AbstractConfigurator
      */
     public static function processValue($value, $allowServices = false)
     {
-        if (is_array($value)) {
+        if (\is_array($value)) {
             foreach ($value as $k => $v) {
                 $value[$k] = static::processValue($v, $allowServices);
             }
@@ -82,6 +82,6 @@ abstract class AbstractConfigurator
                 }
         }
 
-        throw new InvalidArgumentException(sprintf('Cannot use values of type "%s" in service configuration files.', is_object($value) ? get_class($value) : gettype($value)));
+        throw new InvalidArgumentException(sprintf('Cannot use values of type "%s" in service configuration files.', \is_object($value) ? \get_class($value) : \gettype($value)));
     }
 }