Skip to content

Commit e064cbc

Browse files
committed
Merge pull request #2505 from romainneutron/process-constants
[Process] Update use of Process constants
2 parents df95c7b + fc731f3 commit e064cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/process.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ anonymous function to the
4848

4949
$process = new Process('ls -lsa');
5050
$process->run(function ($type, $buffer) {
51-
if ('err' === $type) {
51+
if (Process::ERR === $type) {
5252
echo 'ERR > '.$buffer;
5353
} else {
5454
echo 'OUT > '.$buffer;
@@ -86,7 +86,7 @@ are done doing other stuff::
8686
// ... do other things
8787
8888
$process->wait(function ($type, $buffer) {
89-
if ('err' === $type) {
89+
if (Process:ERR === $type) {
9090
echo 'ERR > '.$buffer;
9191
} else {
9292
echo 'OUT > '.$buffer;

0 commit comments

Comments
 (0)