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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Deprecated

- Deprecate `__toString()` (#1006)
- Deprecate greedy calculation of selector specificity (#1018)
- Deprecate the IE hack in `Rule` (#993, #1003)
- `OutputFormat` properties for space around list separators as an array (#880)
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/AtRuleBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function atRuleArgs()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/CSSList.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ public function removeDeclarationBlockBySelector($mSelector, $bRemoveAll = false

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/CSSList/KeyFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public function getAnimationName()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Comment/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function setComment($sComment)

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/CSSNamespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function getLineNo()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function getCharset()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public function getLocation()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Property/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public function setSelector($sSelector)

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ interface Renderable
{
/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString();

Expand Down
2 changes: 2 additions & 0 deletions src/Rule/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ public function getIsImportant()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/AtRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function atRuleArgs()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ public function createFontShorthand()
* @return string
*
* @throws OutputException
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ public function removeRule($mRule)

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/CSSFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public function getArguments()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/CSSString.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public function getString()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public function getColorDescription()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/LineName.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public static function parse(ParserState $oParserState)

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ public function isRelative()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public function getURL()

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Value/ValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public function setListSeparator($sSeparator)

/**
* @return string
*
* @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
*/
public function __toString()
{
Expand Down