Don't call Symfony ProcessUtils::escapeArgument
parent
38a63ba05a
commit
41458c7518
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue