Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/process/ProcessUtils.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/symfony/process/ProcessUtils.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/process/ProcessUtils.php Thu Feb 28 13:11:55 2019 +0000 @@ -46,7 +46,7 @@ //Fix for PHP bug #49446 escapeshellarg doesn't work on Windows //@see https://bugs.php.net/bug.php?id=43784 //@see https://bugs.php.net/bug.php?id=49446 - if ('\\' === DIRECTORY_SEPARATOR) { + if ('\\' === \DIRECTORY_SEPARATOR) { if ('' === $argument) { return escapeshellarg($argument); } @@ -91,10 +91,10 @@ public static function validateInput($caller, $input) { if (null !== $input) { - if (is_resource($input)) { + if (\is_resource($input)) { return $input; } - if (is_string($input)) { + if (\is_string($input)) { return $input; } if (is_scalar($input)) { @@ -118,6 +118,6 @@ private static function isSurroundedBy($arg, $char) { - return 2 < strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1]; + return 2 < \strlen($arg) && $char === $arg[0] && $char === $arg[\strlen($arg) - 1]; } }