Skip to content

Commit b979dc8

Browse files
authored
[TASK] Deprecate DeclarationBlock::expandShorthands (#558)
The `expandShorthands`/`createShorthands` functions are deprecated and will be removed without substitution in version 10.0. Expanding and creating the shorthand notation is out of the scope of this library. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
1 parent 0ff08fa commit b979dc8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1818

1919
### Deprecated
2020

21+
- Deprecate `DeclarationBlock::expandShorthands()` (#558)
22+
2123
### Removed
2224

2325
- Remove `DeclarationBlock::setSelector()` (#560)

src/RuleSet/DeclarationBlock.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ public function getSelectors()
169169
* Splits shorthand declarations (e.g. `margin` or `font`) into their constituent parts.
170170
*
171171
* @return void
172+
*
173+
* @deprecated This will be removed without substitution in version 10.0.
172174
*/
173175
public function expandShorthands()
174176
{

0 commit comments

Comments
 (0)