From e303e7876ec30fcddc4b60c3ef272560c60bc7bc Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 8 Sep 2024 10:47:31 +0200 Subject: [PATCH] [TASK] Mark the shorthand expansion as to be removed earlier This will allow us to get rid of the code earlier, which will reduce code complexity and make maintenance easier. I will backport those deprecations to 8.x. --- src/CSSList/Document.php | 4 ++-- src/RuleSet/DeclarationBlock.php | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/CSSList/Document.php b/src/CSSList/Document.php index aa21d1eca..787d1d56c 100644 --- a/src/CSSList/Document.php +++ b/src/CSSList/Document.php @@ -114,7 +114,7 @@ public function getSelectorsBySpecificity($sSpecificitySearch = null) /** * Expands all shorthand properties to their long value. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandShorthands(): void { @@ -126,7 +126,7 @@ public function expandShorthands(): void /** * Create shorthands properties whenever possible. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createShorthands(): void { diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index 704f49b73..3f4d7bb8f 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -157,7 +157,7 @@ public function getSelectors() /** * Splits shorthand declarations (e.g. `margin` or `font`) into their constituent parts. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandShorthands(): void { @@ -172,7 +172,7 @@ public function expandShorthands(): void /** * Creates shorthand declarations (e.g. `margin` or `font`) whenever possible. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createShorthands(): void { @@ -191,7 +191,7 @@ public function createShorthands(): void * * Multiple borders are not yet supported as of 3. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandBorderShorthand(): void { @@ -252,7 +252,7 @@ public function expandBorderShorthand(): void * * Handles `margin`, `padding`, `border-color`, `border-style` and `border-width`. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandDimensionsShorthand(): void { @@ -312,7 +312,7 @@ public function expandDimensionsShorthand(): void * (e.g. `font: 300 italic 11px/14px verdana, helvetica, sans-serif;`) * into their constituent parts. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandFontShorthand(): void { @@ -381,7 +381,7 @@ public function expandFontShorthand(): void * * @see http://www.w3.org/TR/21/colors.html#propdef-background * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandBackgroundShorthand(): void { @@ -453,7 +453,7 @@ public function expandBackgroundShorthand(): void } /** - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function expandListStyleShorthand(): void { @@ -536,7 +536,7 @@ public function expandListStyleShorthand(): void * @param array $aProperties * @param string $sShorthand * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createShorthandProperties(array $aProperties, $sShorthand): void { @@ -572,7 +572,7 @@ public function createShorthandProperties(array $aProperties, $sShorthand): void } /** - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createBackgroundShorthand(): void { @@ -587,7 +587,7 @@ public function createBackgroundShorthand(): void } /** - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createListStyleShorthand(): void { @@ -604,7 +604,7 @@ public function createListStyleShorthand(): void * * Should be run after `create_dimensions_shorthand`! * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createBorderShorthand(): void { @@ -621,7 +621,7 @@ public function createBorderShorthand(): void * (margin, padding, border-color, border-style and border-width) * and converts them into shorthand CSS properties. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createDimensionsShorthand(): void { @@ -695,7 +695,7 @@ public function createDimensionsShorthand(): void * * At least `font-size` AND `font-family` must be present in order to create a shorthand declaration. * - * @deprecated This will be removed without substitution in version 10.0. + * @deprecated This will be removed without substitution in version 9.0 in #511. */ public function createFontShorthand(): void {