Skip to content

Commit c29c15a

Browse files
authored
[CLEANUP] Drop PHPDoc type annotations for constants (#1397)
It has turned out that PHPStan does not need them. Fixes #1396
1 parent 3f2ec3d commit c29c15a

File tree

10 files changed

+0
-35
lines changed

10 files changed

+0
-35
lines changed

src/Parsing/ParserState.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
*/
1717
class ParserState
1818
{
19-
/**
20-
* @var null
21-
*/
2219
public const EOF = null;
2320

2421
/**

src/Property/AtRule.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ interface AtRule extends CSSListItem
1616
* Since there are more set rules than block rules,
1717
* we’re whitelisting the block rules and have anything else be treated as a set rule.
1818
*
19-
* @var non-empty-string
20-
*
2119
* @internal since 8.5.2
2220
*/
2321
public const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';

src/Property/KeyframeSelector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class KeyframeSelector extends Selector
1111
* - comma is not allowed unless escaped or quoted;
1212
* - percentage value is allowed by itself.
1313
*
14-
* @var non-empty-string
15-
*
1614
* @internal since 8.5.2
1715
*/
1816
public const SELECTOR_VALIDATION_RX = '/

src/Property/Selector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
class Selector implements Renderable
1818
{
1919
/**
20-
* @var non-empty-string
21-
*
2220
* @internal since 8.5.2
2321
*/
2422
public const SELECTOR_VALIDATION_RX = '/

src/Property/Selector/SpecificityCalculator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ final class SpecificityCalculator
1515
{
1616
/**
1717
* regexp for specificity calculations
18-
*
19-
* @var non-empty-string
2018
*/
2119
private const NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX = '/
2220
(\\.[\\w]+) # classes
@@ -39,8 +37,6 @@ final class SpecificityCalculator
3937

4038
/**
4139
* regexp for specificity calculations
42-
*
43-
* @var non-empty-string
4440
*/
4541
private const ELEMENTS_AND_PSEUDO_ELEMENTS_RX = '/
4642
((^|[\\s\\+\\>\\~]+)[\\w]+ # elements

src/Value/CalcFunction.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@
1010

1111
class CalcFunction extends CSSFunction
1212
{
13-
/**
14-
* @var int
15-
*/
1613
private const T_OPERAND = 1;
17-
18-
/**
19-
* @var int
20-
*/
2114
private const T_OPERATOR = 2;
2215

2316
/**

src/Value/Size.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class Size extends PrimitiveValue
1919
{
2020
/**
2121
* vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
22-
*
23-
* @var list<non-empty-string>
2422
*/
2523
private const ABSOLUTE_SIZE_UNITS = [
2624
'px',
@@ -40,14 +38,8 @@ class Size extends PrimitiveValue
4038
'rem',
4139
];
4240

43-
/**
44-
* @var list<non-empty-string>
45-
*/
4641
private const RELATIVE_SIZE_UNITS = ['%', 'em', 'ex', 'ch', 'fr'];
4742

48-
/**
49-
* @var list<non-empty-string>
50-
*/
5143
private const NON_SIZE_UNITS = ['deg', 'grad', 'rad', 's', 'ms', 'turn', 'Hz', 'kHz'];
5244

5345
/**

tests/Functional/Value/ValueTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ final class ValueTest extends TestCase
2020
* the default set of delimiters for parsing most values
2121
*
2222
* @see \Sabberworm\CSS\Rule\Rule::listDelimiterForRule
23-
*
24-
* @var list<non-empty-string>
2523
*/
2624
private const DEFAULT_DELIMITERS = [',', ' ', '/'];
2725

tests/OutputFormatTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
*/
1616
final class OutputFormatTest extends TestCase
1717
{
18-
/**
19-
* @var string
20-
*/
2118
private const TEST_CSS = <<<EOT
2219
2320
.main, .test {

tests/Unit/Value/ValueTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ final class ValueTest extends TestCase
2222
* the default set of delimiters for parsing most values
2323
*
2424
* @see \Sabberworm\CSS\Rule\Rule::listDelimiterForRule
25-
*
26-
* @var list<non-empty-string>
2725
*/
2826
private const DEFAULT_DELIMITERS = [',', ' ', '/'];
2927

0 commit comments

Comments
 (0)