Skip to content
Closed
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Please also have a look at our

### Changed

- Make constructors of CSS element classes `@internal` (#888)
- Make all non-private properties `@internal` (#886)
- Use more native type declarations and strict mode
(#641, #772, #774, #778, #804, #841, #873, #875)
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/AtRuleBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class AtRuleBlockList extends CSSBlockList implements AtRule
* @param string $type
* @param string $arguments
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($type, $arguments = '', $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/CSSBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ abstract class CSSBlockList extends CSSList
{
/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/CSSList.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ abstract class CSSList implements Renderable, Commentable

/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Document extends CSSBlockList
{
/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Comment/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class Comment implements Renderable
/**
* @param string $commentText
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($commentText = '', $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Parsing/Anchor.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Anchor

/**
* @param int $iPosition
*
* @internal since 8.8.0
*/
public function __construct($iPosition, ParserState $parserState)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/CSSNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class CSSNamespace implements AtRule
* @param string $mUrl
* @param string|null $sPrefix
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($mUrl, $sPrefix = null, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class Charset implements AtRule

/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct(CSSString $oCharset, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class Import implements AtRule
/**
* @param string $mediaQuery
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct(URL $location, $mediaQuery, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public static function isValid($sSelector)
/**
* @param string $sSelector
* @param bool $bCalculateSpecificity
*
* @internal since 8.8.0
*/
public function __construct($sSelector, $bCalculateSpecificity = false)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Rule/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class Rule implements Renderable, Commentable
* @param string $sRule
* @param int $lineNumber
* @param int $iColNo
*
* @internal since 8.8.0
*/
public function __construct($sRule, $lineNumber = 0, $iColNo = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/AtRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class AtRuleSet extends RuleSet implements AtRule
* @param string $sType
* @param string $sArgs
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($sType, $sArgs = '', $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class DeclarationBlock extends RuleSet

/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ abstract class RuleSet implements Renderable, Commentable

/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/CSSFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class CSSFunction extends ValueList
* @param RuleValueList|array<array-key, Value|string> $aArguments
* @param string $sSeparator
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($sName, $aArguments, $sSeparator = ',', $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/CSSString.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class CSSString extends PrimitiveValue
/**
* @param string $sString
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($sString, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/CalcRuleValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class CalcRuleValueList extends RuleValueList
{
/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class Color extends CSSFunction
/**
* @param array<array-key, Value|string> $colorValues
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct(array $colorValues, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/LineName.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class LineName extends ValueList
/**
* @param array<int, Value|string> $aComponents
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct(array $aComponents = [], $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/PrimitiveValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ abstract class PrimitiveValue extends Value
{
/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/RuleValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class RuleValueList extends ValueList
/**
* @param string $sSeparator
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($sSeparator = ',', $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Size extends PrimitiveValue
* @param string|null $sUnit
* @param bool $bIsColorComponent
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($fSize, $sUnit = null, $bIsColorComponent = false, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class URL extends PrimitiveValue

/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct(CSSString $oURL, $lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ abstract class Value implements Renderable

/**
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($lineNumber = 0)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/ValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ abstract class ValueList extends Value
* @param array<array-key, Value|string>|Value|string $aComponents
* @param string $sSeparator
* @param int $lineNumber
*
* @internal since 8.8.0
*/
public function __construct($aComponents = [], $sSeparator = ',', $lineNumber = 0)
{
Expand Down