Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2ecf08

Browse files
Chris McGeheenicolas-grekas
Chris McGehee
authored andcommitted
[Process] Update PHPDoc to use proper placeholder syntax
1 parent fa6a03a commit a2ecf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function __construct($command, string $cwd = null, array $env = null, $in
177177
* In order to inject dynamic values into command-lines, we strongly recommend using placeholders.
178178
* This will save escaping values, which is not portable nor secure anyway:
179179
*
180-
* $process = Process::fromShellCommandline('my_command "$MY_VAR"');
180+
* $process = Process::fromShellCommandline('my_command "${:MY_VAR}"');
181181
* $process->run(null, ['MY_VAR' => $theValue]);
182182
*
183183
* @param string $command The command line to pass to the shell of the OS

0 commit comments

Comments
 (0)