From ea00840343112138892d68a5a334c3e260f7a3c2 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Wed, 19 Jun 2024 11:33:40 +0200 Subject: [PATCH] [TASK] Deprecate DeclarationBlock::createShorthands (#569) Signed-off-by: Daniel Ziegenberg --- CHANGELOG.md | 1 + src/RuleSet/DeclarationBlock.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 539dadf5..0399c470 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Deprecated +- Deprecate `DeclarationBlock::createShorthands()` (#569) - Deprecate `Document::expandShorthands()` (#566) - Deprecate `Document::createShorthands()` (#567) - Deprecate `DeclarationBlock::expandShorthands()` (#558) diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index 1fc2a11b..a2ea65d6 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -175,6 +175,8 @@ public function expandShorthands() * Creates shorthand declarations (e.g. `margin` or `font`) whenever possible. * * @return void + * + * @deprecated This will be removed without substitution in version 10.0. */ public function createShorthands() {