Skip to content

Commit 5bbad87

Browse files
committed
Don't apply constant visibility
1 parent 93be62b commit 5bbad87

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
'ternary_operator_spaces' => true,
9595
'trailing_comma_in_multiline' => true,
9696
'trim_array_spaces' => true,
97+
'visibility_required' => ['elements' => ['property', 'method']],
9798
'whitespace_after_comma_in_array' => true,
9899
])
99100
->setFinder($finder);

src/JsonToken.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@
1212
final class JsonToken
1313
{
1414
/** Represents the [ character that begins an array */
15-
public const T_LEFT_BRACKET = 1;
15+
const T_LEFT_BRACKET = 1;
1616

1717
/** Represents the ] character the ends an array */
18-
public const T_RIGHT_BRACKET = 2;
18+
const T_RIGHT_BRACKET = 2;
1919

2020
/** Represents the { character that begins an object */
21-
public const T_LEFT_BRACE = 3;
21+
const T_LEFT_BRACE = 3;
2222

2323
/** Represents the } character that ends an object */
24-
public const T_RIGHT_BRACE = 4;
24+
const T_RIGHT_BRACE = 4;
2525

2626
/** Represents a name in an object name/value pair */
27-
public const T_NAME = 5;
27+
const T_NAME = 5;
2828

2929
/** Represent the : character that separates a name and a value */
30-
public const T_COLON = 6;
30+
const T_COLON = 6;
3131

3232
/** Represents all values */
33-
public const T_VALUE = 7;
33+
const T_VALUE = 7;
3434

3535
/** Represents the , character that separates array values and object name/value pairs */
36-
public const T_COMMA = 8;
36+
const T_COMMA = 8;
3737

3838
/** Represents all whitespace */
39-
public const T_WHITESPACE = 9;
39+
const T_WHITESPACE = 9;
4040
}

0 commit comments

Comments
 (0)