mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°5122 - Update libs to new PHP requirements
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user