Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / process / ProcessUtils.php
index cbc95708ed4a6c5d1cee56fa189704c29b0f96a9..c30950c1da2f2ceffe5e3f3847000d607ebd5734 100644 (file)
@@ -35,9 +35,13 @@ class ProcessUtils
      * @param string $argument The argument that will be escaped
      *
      * @return string The escaped argument
+     *
+     * @deprecated since version 3.3, to be removed in 4.0. Use a command line array or give env vars to the `Process::start/run()` method instead.
      */
     public static function escapeArgument($argument)
     {
+        @trigger_error('The '.__METHOD__.'() method is deprecated since Symfony 3.3 and will be removed in 4.0. Use a command line array or give env vars to the Process::start/run() method instead.', E_USER_DEPRECATED);
+
         //Fix for PHP bug #43784 escapeshellarg removes % from given string
         //Fix for PHP bug #49446 escapeshellarg doesn't work on Windows
         //@see https://bugs.php.net/bug.php?id=43784