N°5122 - Update libs to new PHP requirements

This commit is contained in:
Molkobain
2022-08-08 14:10:26 +02:00
parent 30021d9236
commit 57c36d0e51
585 changed files with 62279 additions and 20427 deletions

View File

@@ -112,7 +112,7 @@ class EnvVarProcessor implements EnvVarProcessorInterface
}
if ('file' === $prefix || 'require' === $prefix) {
if (!is_scalar($file = $getEnv($name))) {
if (!\is_scalar($file = $getEnv($name))) {
throw new RuntimeException(sprintf('Invalid file name: env var "%s" is non-scalar.', $name));
}
if (!is_file($file)) {
@@ -184,7 +184,7 @@ class EnvVarProcessor implements EnvVarProcessorInterface
return null;
}
if (!is_scalar($env)) {
if (!\is_scalar($env)) {
throw new RuntimeException(sprintf('Non-scalar env var "%s" cannot be cast to "%s".', $name, $prefix));
}
@@ -283,7 +283,7 @@ class EnvVarProcessor implements EnvVarProcessorInterface
$value = $this->container->getParameter($match[1]);
}
if (!is_scalar($value)) {
if (!\is_scalar($value)) {
throw new RuntimeException(sprintf('Parameter "%s" found when resolving env var "%s" must be scalar, "%s" given.', $match[1], $name, get_debug_type($value)));
}