1
0
Fork 0

Don't call Symfony ProcessUtils::escapeArgument

pull/7762/head
Michele Locati 2018-10-12 15:56:26 +02:00 committed by Jordi Boggiano
parent 38a63ba05a
commit 41458c7518
1 changed files with 1 additions and 5 deletions

View File

@ -131,15 +131,11 @@ class ProcessExecutor
*/ */
public static function escape($argument) public static function escape($argument)
{ {
if (method_exists('Symfony\Component\Process\ProcessUtils', 'escapeArgument')) {
return ProcessUtils::escapeArgument($argument);
}
return self::escapeArgument($argument); return self::escapeArgument($argument);
} }
/** /**
* Copy of ProcessUtils::escapeArgument() that is removed in Symfony 4. * Copy of ProcessUtils::escapeArgument() that is deprecated in Symfony 3.3 and removed in Symfony 4.
* *
* @param string $argument * @param string $argument
* *