Skip to content

Commit b6f57b9

Browse files
authored
[TASK] Mark the shorthand expansion as to be removed earlier (#714)
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.
1 parent 8bf7763 commit b6f57b9

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/CSSList/Document.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function getSelectorsBySpecificity($sSpecificitySearch = null)
114114
/**
115115
* Expands all shorthand properties to their long value.
116116
*
117-
* @deprecated This will be removed without substitution in version 10.0.
117+
* @deprecated This will be removed without substitution in version 9.0 in #511.
118118
*/
119119
public function expandShorthands(): void
120120
{
@@ -126,7 +126,7 @@ public function expandShorthands(): void
126126
/**
127127
* Create shorthands properties whenever possible.
128128
*
129-
* @deprecated This will be removed without substitution in version 10.0.
129+
* @deprecated This will be removed without substitution in version 9.0 in #511.
130130
*/
131131
public function createShorthands(): void
132132
{

src/RuleSet/DeclarationBlock.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getSelectors()
157157
/**
158158
* Splits shorthand declarations (e.g. `margin` or `font`) into their constituent parts.
159159
*
160-
* @deprecated This will be removed without substitution in version 10.0.
160+
* @deprecated This will be removed without substitution in version 9.0 in #511.
161161
*/
162162
public function expandShorthands(): void
163163
{
@@ -172,7 +172,7 @@ public function expandShorthands(): void
172172
/**
173173
* Creates shorthand declarations (e.g. `margin` or `font`) whenever possible.
174174
*
175-
* @deprecated This will be removed without substitution in version 10.0.
175+
* @deprecated This will be removed without substitution in version 9.0 in #511.
176176
*/
177177
public function createShorthands(): void
178178
{
@@ -191,7 +191,7 @@ public function createShorthands(): void
191191
*
192192
* Multiple borders are not yet supported as of 3.
193193
*
194-
* @deprecated This will be removed without substitution in version 10.0.
194+
* @deprecated This will be removed without substitution in version 9.0 in #511.
195195
*/
196196
public function expandBorderShorthand(): void
197197
{
@@ -252,7 +252,7 @@ public function expandBorderShorthand(): void
252252
*
253253
* Handles `margin`, `padding`, `border-color`, `border-style` and `border-width`.
254254
*
255-
* @deprecated This will be removed without substitution in version 10.0.
255+
* @deprecated This will be removed without substitution in version 9.0 in #511.
256256
*/
257257
public function expandDimensionsShorthand(): void
258258
{
@@ -312,7 +312,7 @@ public function expandDimensionsShorthand(): void
312312
* (e.g. `font: 300 italic 11px/14px verdana, helvetica, sans-serif;`)
313313
* into their constituent parts.
314314
*
315-
* @deprecated This will be removed without substitution in version 10.0.
315+
* @deprecated This will be removed without substitution in version 9.0 in #511.
316316
*/
317317
public function expandFontShorthand(): void
318318
{
@@ -381,7 +381,7 @@ public function expandFontShorthand(): void
381381
*
382382
* @see http://www.w3.org/TR/21/colors.html#propdef-background
383383
*
384-
* @deprecated This will be removed without substitution in version 10.0.
384+
* @deprecated This will be removed without substitution in version 9.0 in #511.
385385
*/
386386
public function expandBackgroundShorthand(): void
387387
{
@@ -453,7 +453,7 @@ public function expandBackgroundShorthand(): void
453453
}
454454

455455
/**
456-
* @deprecated This will be removed without substitution in version 10.0.
456+
* @deprecated This will be removed without substitution in version 9.0 in #511.
457457
*/
458458
public function expandListStyleShorthand(): void
459459
{
@@ -536,7 +536,7 @@ public function expandListStyleShorthand(): void
536536
* @param array<array-key, string> $aProperties
537537
* @param string $sShorthand
538538
*
539-
* @deprecated This will be removed without substitution in version 10.0.
539+
* @deprecated This will be removed without substitution in version 9.0 in #511.
540540
*/
541541
public function createShorthandProperties(array $aProperties, $sShorthand): void
542542
{
@@ -572,7 +572,7 @@ public function createShorthandProperties(array $aProperties, $sShorthand): void
572572
}
573573

574574
/**
575-
* @deprecated This will be removed without substitution in version 10.0.
575+
* @deprecated This will be removed without substitution in version 9.0 in #511.
576576
*/
577577
public function createBackgroundShorthand(): void
578578
{
@@ -587,7 +587,7 @@ public function createBackgroundShorthand(): void
587587
}
588588

589589
/**
590-
* @deprecated This will be removed without substitution in version 10.0.
590+
* @deprecated This will be removed without substitution in version 9.0 in #511.
591591
*/
592592
public function createListStyleShorthand(): void
593593
{
@@ -604,7 +604,7 @@ public function createListStyleShorthand(): void
604604
*
605605
* Should be run after `create_dimensions_shorthand`!
606606
*
607-
* @deprecated This will be removed without substitution in version 10.0.
607+
* @deprecated This will be removed without substitution in version 9.0 in #511.
608608
*/
609609
public function createBorderShorthand(): void
610610
{
@@ -621,7 +621,7 @@ public function createBorderShorthand(): void
621621
* (margin, padding, border-color, border-style and border-width)
622622
* and converts them into shorthand CSS properties.
623623
*
624-
* @deprecated This will be removed without substitution in version 10.0.
624+
* @deprecated This will be removed without substitution in version 9.0 in #511.
625625
*/
626626
public function createDimensionsShorthand(): void
627627
{
@@ -695,7 +695,7 @@ public function createDimensionsShorthand(): void
695695
*
696696
* At least `font-size` AND `font-family` must be present in order to create a shorthand declaration.
697697
*
698-
* @deprecated This will be removed without substitution in version 10.0.
698+
* @deprecated This will be removed without substitution in version 9.0 in #511.
699699
*/
700700
public function createFontShorthand(): void
701701
{

0 commit comments

Comments
 (0)