From 8acbf2d98b2a7a4171c8e2a86300347905a39f60 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 7 Mar 2025 09:44:23 +0100 Subject: [PATCH 1/3] [TASK] Deprecate `OutputFormat::get()` and `::set()` Part of #1103 --- CHANGELOG.md | 1 + src/OutputFormat.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 119d0023..e744f1e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Deprecated +- Deprecate `OutputFormat::get()` and `::set()` (#1107) - Deprecate support for `-webkit-calc` and `-moz-calc` (#1086) - Deprecate `__toString()` (#1006) - Deprecate greedy calculation of selector specificity (#1018) diff --git a/src/OutputFormat.php b/src/OutputFormat.php index ad82395a..3f57ce16 100644 --- a/src/OutputFormat.php +++ b/src/OutputFormat.php @@ -247,6 +247,8 @@ public function __construct() * @param string $sName * * @return string|null + * + * @deprecated since 8.8.0, will be removed in 9.0.0. Use specific magic getters instead. */ public function get($sName) { @@ -265,6 +267,8 @@ public function get($sName) * @param mixed $mValue * * @return self|false + * + * @deprecated since 8.8.0, will be removed in 9.0.0. Use specific magic setters instead. */ public function set($aNames, $mValue) { From 86c524afde9d1016d5fe3fa503ef9381cd05fe9a Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 7 Mar 2025 15:57:41 +0100 Subject: [PATCH 2/3] Update src/OutputFormat.php Co-authored-by: JakeQZ --- src/OutputFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OutputFormat.php b/src/OutputFormat.php index 3f57ce16..8475223b 100644 --- a/src/OutputFormat.php +++ b/src/OutputFormat.php @@ -248,7 +248,7 @@ public function __construct() * * @return string|null * - * @deprecated since 8.8.0, will be removed in 9.0.0. Use specific magic getters instead. + * @deprecated since 8.8.0, will be removed in 9.0.0. Use specific getters instead. */ public function get($sName) { From 279352fe90bbd1bb624f2e20544dde85b67c6f91 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 7 Mar 2025 15:57:51 +0100 Subject: [PATCH 3/3] Update src/OutputFormat.php Co-authored-by: JakeQZ --- src/OutputFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OutputFormat.php b/src/OutputFormat.php index 8475223b..d31ef4ff 100644 --- a/src/OutputFormat.php +++ b/src/OutputFormat.php @@ -268,7 +268,7 @@ public function get($sName) * * @return self|false * - * @deprecated since 8.8.0, will be removed in 9.0.0. Use specific magic setters instead. + * @deprecated since 8.8.0, will be removed in 9.0.0. Use specific setters instead. */ public function set($aNames, $mValue) {