Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/Parsing/ParserState.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*/
class ParserState
{
/**
* @var null
*/
public const EOF = null;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Property/AtRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ interface AtRule extends CSSListItem
* Since there are more set rules than block rules,
* we’re whitelisting the block rules and have anything else be treated as a set rule.
*
* @var non-empty-string
*
* @internal since 8.5.2
*/
public const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';
Expand Down
2 changes: 0 additions & 2 deletions src/Property/KeyframeSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class KeyframeSelector extends Selector
* - comma is not allowed unless escaped or quoted;
* - percentage value is allowed by itself.
*
* @var non-empty-string
*
* @internal since 8.5.2
*/
public const SELECTOR_VALIDATION_RX = '/
Expand Down
2 changes: 0 additions & 2 deletions src/Property/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
class Selector implements Renderable
{
/**
* @var non-empty-string
*
* @internal since 8.5.2
*/
public const SELECTOR_VALIDATION_RX = '/
Expand Down
4 changes: 0 additions & 4 deletions src/Property/Selector/SpecificityCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ final class SpecificityCalculator
{
/**
* regexp for specificity calculations
*
* @var non-empty-string
*/
private const NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX = '/
(\\.[\\w]+) # classes
Expand All @@ -39,8 +37,6 @@ final class SpecificityCalculator

/**
* regexp for specificity calculations
*
* @var non-empty-string
*/
private const ELEMENTS_AND_PSEUDO_ELEMENTS_RX = '/
((^|[\\s\\+\\>\\~]+)[\\w]+ # elements
Expand Down
7 changes: 0 additions & 7 deletions src/Value/CalcFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@

class CalcFunction extends CSSFunction
{
/**
* @var int
*/
private const T_OPERAND = 1;

/**
* @var int
*/
private const T_OPERATOR = 2;

/**
Expand Down
8 changes: 0 additions & 8 deletions src/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class Size extends PrimitiveValue
{
/**
* vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
*
* @var list<non-empty-string>
*/
private const ABSOLUTE_SIZE_UNITS = [
'px',
Expand All @@ -40,14 +38,8 @@ class Size extends PrimitiveValue
'rem',
];

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

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

/**
Expand Down
2 changes: 0 additions & 2 deletions tests/Functional/Value/ValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ final class ValueTest extends TestCase
* the default set of delimiters for parsing most values
*
* @see \Sabberworm\CSS\Rule\Rule::listDelimiterForRule
*
* @var list<non-empty-string>
*/
private const DEFAULT_DELIMITERS = [',', ' ', '/'];

Expand Down
3 changes: 0 additions & 3 deletions tests/OutputFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
*/
final class OutputFormatTest extends TestCase
{
/**
* @var string
*/
private const TEST_CSS = <<<EOT

.main, .test {
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/Value/ValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ final class ValueTest extends TestCase
* the default set of delimiters for parsing most values
*
* @see \Sabberworm\CSS\Rule\Rule::listDelimiterForRule
*
* @var list<non-empty-string>
*/
private const DEFAULT_DELIMITERS = [',', ' ', '/'];

Expand Down