escapeshellarg

Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Escape a string to be used as a shell argument
<?php escapeshellarg(string $arg): string
<?php     private static function escapeArgument($argument)

    {

        if ('' === ($argument = (string) $argument)) {

            return escapeshellarg($argument);

        }



        if (!Platform::isWindows()) {
<?php             'COMPOSER_CACHE_DIR' => $this->testDir.'cache',

        );



        $proc = Process::fromShellCommandline(escapeshellcmd(PHP_BINARY).' '.escapeshellarg(self::$pharPath).' --no-ansi '.$testData['RUN'], $this->testDir, $env, null, 300);

        $output = '';



        $exitCode = $proc->run(function ($type, $buffer) use (&$output) {