We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df95c7b + fc731f3 commit e064cbcCopy full SHA for e064cbc
components/process.rst
@@ -48,7 +48,7 @@ anonymous function to the
48
49
$process = new Process('ls -lsa');
50
$process->run(function ($type, $buffer) {
51
- if ('err' === $type) {
+ if (Process::ERR === $type) {
52
echo 'ERR > '.$buffer;
53
} else {
54
echo 'OUT > '.$buffer;
@@ -86,7 +86,7 @@ are done doing other stuff::
86
// ... do other things
87
88
$process->wait(function ($type, $buffer) {
89
+ if (Process:ERR === $type) {
90
91
92
0 commit comments