We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f63fdb5 commit 4dc4d35Copy full SHA for 4dc4d35
1 file changed
rules-tests/Php85/Rector/ShellExec/ShellExecFunctionCallOverBackticksRector/Fixture/with_variable.php.inc
@@ -9,12 +9,10 @@ class WithVariable
9
$dir = __DIR__;
10
$var = 'example';
11
12
- $output = `ls -al`;
13
- $output2 = `ls $dir`;
14
- $output3 = `echo "value: $var"`;
+ $output = `ls $dir`;
+ $output2 = `echo "value: $var"`;
15
echo "<pre>$output</pre>";
16
echo "<pre>$output2</pre>";
17
- echo "<pre>$output3</pre>";
18
}
19
20
@@ -31,10 +29,8 @@ class WithVariable
31
29
32
30
33
34
- $output = shell_exec("ls -al");
35
$output2 = shell_exec("ls $dir");
36
$output3 = shell_exec("echo \"value: $var\"");
37
- echo "<pre>$output</pre>";
38
39
echo "<pre>$output3</pre>";
40
0 commit comments