Skip to content

Commit

Permalink
Merge branch 'main' into remove-deprecated-rule-setvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeQZ committed Jun 19, 2024
2 parents 3145625 + e098980 commit 840188c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Removed

- Remove `Rule::setValues()` (#562)
- Remove `Document::getAllSelectors()` (#561)
- Remove `DeclarationBlock::getSelector()` (#559)
- Remove `DeclarationBlock::setSelector()` (#560)
- Drop support for PHP < 7.2 (#420)

Expand Down
12 changes: 0 additions & 12 deletions src/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ public function getAllDeclarationBlocks()
return $aResult;
}

/**
* Gets all `DeclarationBlock` objects recursively.
*
* @return array<int, DeclarationBlock>
*
* @deprecated will be removed in version 9.0; use `getAllDeclarationBlocks()` instead
*/
public function getAllSelectors()
{
return $this->getAllDeclarationBlocks();
}

/**
* Returns all `RuleSet` objects recursively found in the tree, no matter how deeply nested the rule sets are.
*
Expand Down
11 changes: 0 additions & 11 deletions src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,6 @@ public function removeSelector($mSelector)
return false;
}

/**
* @return array<int, Selector|string>
*
* @deprecated will be removed in version 9.0; use `getSelectors()` instead
*/
public function getSelector()
{
return $this->getSelectors();
}


/**
* @return array<int, Selector|string>
*/
Expand Down

0 comments on commit 840188c

Please sign in to comment.