Skip to content

Commit b48925e

Browse files
authored
[TASK] Mark all class constants as @internal (#500)
This communicates that the constants must not be accessed from outside the project, thus preventing breakage as most of the constants will have a reduced visibility in version 9 (#470).
1 parent eed92ad commit b48925e

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
99

1010
### Changed
1111

12+
- Mark all class constants as `@internal` (#500)
13+
1214
### Deprecated
1315

1416
### Removed

src/Parsing/ParserState.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class ParserState
99
{
1010
/**
1111
* @var null
12+
*
13+
* @internal
1214
*/
1315
const EOF = null;
1416

src/Property/AtRule.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ interface AtRule extends Renderable, Commentable
1212
* we’re whitelisting the block rules and have anything else be treated as a set rule.
1313
*
1414
* @var string
15+
*
16+
* @internal
1517
*/
1618
const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';
1719

1820
/**
1921
* … and more font-specific ones (to be used inside font-feature-values)
2022
*
2123
* @var string
24+
*
25+
* @internal
2226
*/
2327
const SET_RULES = 'font-face/counter-style/page/swash/styleset/annotation';
2428

src/Property/KeyframeSelector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class KeyframeSelector extends Selector
88
* regexp for specificity calculations
99
*
1010
* @var string
11+
*
12+
* @internal
1113
*/
1214
const SELECTOR_VALIDATION_RX = '/
1315
^(

src/Property/Selector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class Selector
1212
* regexp for specificity calculations
1313
*
1414
* @var string
15+
*
16+
* @internal
1517
*/
1618
const NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX = '/
1719
(\.[\w]+) # classes
@@ -36,6 +38,8 @@ class Selector
3638
* regexp for specificity calculations
3739
*
3840
* @var string
41+
*
42+
* @internal
3943
*/
4044
const ELEMENTS_AND_PSEUDO_ELEMENTS_RX = '/
4145
((^|[\s\+\>\~]+)[\w]+ # elements
@@ -49,6 +53,8 @@ class Selector
4953
* regexp for specificity calculations
5054
*
5155
* @var string
56+
*
57+
* @internal
5258
*/
5359
const SELECTOR_VALIDATION_RX = '/
5460
^(

src/Value/CalcFunction.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ class CalcFunction extends CSSFunction
1010
{
1111
/**
1212
* @var int
13+
*
14+
* @internal
1315
*/
1416
const T_OPERAND = 1;
1517

1618
/**
1719
* @var int
20+
*
21+
* @internal
1822
*/
1923
const T_OPERATOR = 2;
2024

src/Value/Size.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,22 @@ class Size extends PrimitiveValue
1616
* vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
1717
*
1818
* @var array<int, string>
19+
*
20+
* @internal
1921
*/
2022
const ABSOLUTE_SIZE_UNITS = ['px', 'cm', 'mm', 'mozmm', 'in', 'pt', 'pc', 'vh', 'vw', 'vmin', 'vmax', 'rem'];
2123

2224
/**
2325
* @var array<int, string>
26+
*
27+
* @internal
2428
*/
2529
const RELATIVE_SIZE_UNITS = ['%', 'em', 'ex', 'ch', 'fr'];
2630

2731
/**
2832
* @var array<int, string>
33+
*
34+
* @internal
2935
*/
3036
const NON_SIZE_UNITS = ['deg', 'grad', 'rad', 's', 'ms', 'turn', 'Hz', 'kHz'];
3137

0 commit comments

Comments
 (0)