Explorar el Código

Don't call Symfony ProcessUtils::escapeArgument

Michele Locati hace 6 años
padre
commit
41458c7518
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      src/Composer/Util/ProcessExecutor.php

+ 1 - 5
src/Composer/Util/ProcessExecutor.php

@@ -131,15 +131,11 @@ class ProcessExecutor
      */
     public static function escape($argument)
     {
-        if (method_exists('Symfony\Component\Process\ProcessUtils', 'escapeArgument')) {
-            return ProcessUtils::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
      *