From 0cad1ec2fa2004a49b9846ec10d13dd1f6dac595 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Wed, 19 Jun 2024 01:46:58 +0200 Subject: [PATCH 1/2] [TASK] Remove `DeclarationBlock::getSelector` (#559) --- CHANGELOG.md | 1 + src/RuleSet/DeclarationBlock.php | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ba5f8d..f0e9ffab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Removed +- Remove `DeclarationBlock::getSelector()` (#559) - Remove `DeclarationBlock::setSelector()` (#560) - Drop support for PHP < 7.2 (#420) diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index 5254d0f8..1fc2a11b 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -146,17 +146,6 @@ public function removeSelector($mSelector) return false; } - /** - * @return array - * - * @deprecated will be removed in version 9.0; use `getSelectors()` instead - */ - public function getSelector() - { - return $this->getSelectors(); - } - - /** * @return array */ From e098980a2eb00edecd1683f4877079c3a4674f25 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Wed, 19 Jun 2024 01:57:10 +0200 Subject: [PATCH 2/2] [TASK] Remove `Document::getAllSelectors` (#561) --- CHANGELOG.md | 1 + src/CSSList/Document.php | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e9ffab..53030c63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Removed +- Remove `Document::getAllSelectors()` (#561) - Remove `DeclarationBlock::getSelector()` (#559) - Remove `DeclarationBlock::setSelector()` (#560) - Drop support for PHP < 7.2 (#420) diff --git a/src/CSSList/Document.php b/src/CSSList/Document.php index bad99831..917186b4 100644 --- a/src/CSSList/Document.php +++ b/src/CSSList/Document.php @@ -50,18 +50,6 @@ public function getAllDeclarationBlocks() return $aResult; } - /** - * Gets all `DeclarationBlock` objects recursively. - * - * @return array - * - * @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. *