Skip to content

Commit f9a7c7e

Browse files
Merge branch '5.1' into 5.2
* 5.1: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents 6fca724 + 70ced95 commit f9a7c7e

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Node/GetAttrNode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
*/
2121
class GetAttrNode extends Node
2222
{
23-
const PROPERTY_CALL = 1;
24-
const METHOD_CALL = 2;
25-
const ARRAY_CALL = 3;
23+
public const PROPERTY_CALL = 1;
24+
public const METHOD_CALL = 2;
25+
public const ARRAY_CALL = 3;
2626

2727
public function __construct(Node $node, Node $attribute, ArrayNode $arguments, int $type)
2828
{

Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*/
2424
class Parser
2525
{
26-
const OPERATOR_LEFT = 1;
27-
const OPERATOR_RIGHT = 2;
26+
public const OPERATOR_LEFT = 1;
27+
public const OPERATOR_RIGHT = 2;
2828

2929
private $stream;
3030
private $unaryOperators;

Token.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class Token
2222
public $type;
2323
public $cursor;
2424

25-
const EOF_TYPE = 'end of expression';
26-
const NAME_TYPE = 'name';
27-
const NUMBER_TYPE = 'number';
28-
const STRING_TYPE = 'string';
29-
const OPERATOR_TYPE = 'operator';
30-
const PUNCTUATION_TYPE = 'punctuation';
25+
public const EOF_TYPE = 'end of expression';
26+
public const NAME_TYPE = 'name';
27+
public const NUMBER_TYPE = 'number';
28+
public const STRING_TYPE = 'string';
29+
public const OPERATOR_TYPE = 'operator';
30+
public const PUNCTUATION_TYPE = 'punctuation';
3131

3232
/**
3333
* @param string $type The type of the token (self::*_TYPE)

0 commit comments

Comments
 (0)