From 17d90785099e7fd6898ec777366a0a587c53e726 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Tue, 18 Jun 2024 10:56:12 +0200 Subject: [PATCH 1/2] [CLEANUP] Final removal of Document::getAllSelectors Signed-off-by: Daniel Ziegenberg --- CHANGELOG.md | 1 + src/CSSList/Document.php | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ba5f8d..974318ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Remove `DeclarationBlock::setSelector()` (#560) - Drop support for PHP < 7.2 (#420) +- Final removal of `Document::getAllSelectors()` (#561) ### Fixed 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. * From bf909562144ae4c630b6d375a330909e6b6f369d Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Tue, 18 Jun 2024 17:11:28 +0200 Subject: [PATCH 2/2] fixup! [CLEANUP] Final removal of Document::getAllSelectors --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 974318ed..d438127c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,9 +22,9 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Removed +- Remove `Document::getAllSelectors()` (#561) - Remove `DeclarationBlock::setSelector()` (#560) - Drop support for PHP < 7.2 (#420) -- Final removal of `Document::getAllSelectors()` (#561) ### Fixed