Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / dependency-injection / EnvVarProcessor.php
index d4c60a8606a1364b67b68e88d7194bebb8f6b569..13568079bb68050d7e50f315e8489944e6493c06 100644 (file)
@@ -110,11 +110,11 @@ class EnvVarProcessor implements EnvVarProcessorInterface
         }
 
         if ('const' === $prefix) {
-            if (!defined($env)) {
+            if (!\defined($env)) {
                 throw new RuntimeException(sprintf('Env var "%s" maps to undefined constant "%s".', $name, $env));
             }
 
-            return constant($env);
+            return \constant($env);
         }
 
         if ('base64' === $prefix) {
@@ -128,8 +128,8 @@ class EnvVarProcessor implements EnvVarProcessorInterface
                 throw new RuntimeException(sprintf('Invalid JSON in env var "%s": '.json_last_error_msg(), $name));
             }
 
-            if (!is_array($env)) {
-                throw new RuntimeException(sprintf('Invalid JSON env var "%s": array expected, %s given.', $name, gettype($env)));
+            if (!\is_array($env)) {
+                throw new RuntimeException(sprintf('Invalid JSON env var "%s": array expected, %s given.', $name, \gettype($env)));
             }
 
             return $env;
@@ -142,7 +142,7 @@ class EnvVarProcessor implements EnvVarProcessorInterface
                 }
                 $value = $this->container->getParameter($match[1]);
                 if (!is_scalar($value)) {
-                    throw new RuntimeException(sprintf('Parameter "%s" found when resolving env var "%s" must be scalar, "%s" given.', $match[1], $name, gettype($value)));
+                    throw new RuntimeException(sprintf('Parameter "%s" found when resolving env var "%s" must be scalar, "%s" given.', $match[1], $name, \gettype($value)));
                 }
 
                 return $value;