Skip to content

Commit bd8815b

Browse files
Merge branch '5.1' into 5.2
* 5.1: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents 240e741 + 8063b99 commit bd8815b

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Exception/ProcessTimedOutException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
class ProcessTimedOutException extends RuntimeException
2222
{
23-
const TYPE_GENERAL = 1;
24-
const TYPE_IDLE = 2;
23+
public const TYPE_GENERAL = 1;
24+
public const TYPE_IDLE = 2;
2525

2626
private $process;
2727
private $timeoutType;

Pipes/PipesInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
interface PipesInterface
2222
{
23-
const CHUNK_SIZE = 16384;
23+
public const CHUNK_SIZE = 16384;
2424

2525
/**
2626
* Returns an array of descriptors for the use of proc_open.

Process.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@
3030
*/
3131
class Process implements \IteratorAggregate
3232
{
33-
const ERR = 'err';
34-
const OUT = 'out';
33+
public const ERR = 'err';
34+
public const OUT = 'out';
3535

36-
const STATUS_READY = 'ready';
37-
const STATUS_STARTED = 'started';
38-
const STATUS_TERMINATED = 'terminated';
36+
public const STATUS_READY = 'ready';
37+
public const STATUS_STARTED = 'started';
38+
public const STATUS_TERMINATED = 'terminated';
3939

40-
const STDIN = 0;
41-
const STDOUT = 1;
42-
const STDERR = 2;
40+
public const STDIN = 0;
41+
public const STDOUT = 1;
42+
public const STDERR = 2;
4343

4444
// Timeout Precision in seconds.
45-
const TIMEOUT_PRECISION = 0.2;
45+
public const TIMEOUT_PRECISION = 0.2;
4646

47-
const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking
48-
const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory
49-
const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating
50-
const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating
47+
public const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking
48+
public const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory
49+
public const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating
50+
public const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating
5151

5252
private $callback;
5353
private $hasCallback = false;

0 commit comments

Comments
 (0)