Skip to content

Commit 74df2cd

Browse files
authored
[TASK] State since which version code is @internal/@deprecated (#722)
This will help us avoid breaking things in backports.
1 parent 18120ca commit 74df2cd

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
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 9.0 in #511.
117+
* @deprecated since 8.7.0, 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 9.0 in #511.
129+
* @deprecated since 8.7.0, will be removed without substitution in version 9.0 in #511
130130
*/
131131
public function createShorthands(): void
132132
{

src/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct($sText, ?Settings $oParserSettings = null, $iLineNo
3636
*
3737
* @param string $sCharset
3838
*
39-
* @deprecated will be removed in version 9.0.0 with #687
39+
* @deprecated since 8.7.0, will be removed in version 9.0.0 with #687
4040
*/
4141
public function setCharset($sCharset): void
4242
{
@@ -46,7 +46,7 @@ public function setCharset($sCharset): void
4646
/**
4747
* Returns the charset that is used if the CSS does not contain an `@charset` declaration.
4848
*
49-
* @deprecated will be removed in version 9.0.0 with #687
49+
* @deprecated since 8.7.0, will be removed in version 9.0.0 with #687
5050
*/
5151
public function getCharset(): void
5252
{

src/Parsing/Anchor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Sabberworm\CSS\Parsing;
66

77
/**
8-
* @internal
8+
* @internal since 8.7.0
99
*/
1010
class Anchor
1111
{

src/Parsing/ParserState.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
use Sabberworm\CSS\Settings;
99

1010
/**
11-
* @internal
11+
* @internal since 8.7.0
1212
*/
1313
class ParserState
1414
{
1515
/**
1616
* @var null
1717
*
18-
* @internal
18+
* @internal since 8.5.2
1919
*/
2020
public const EOF = null;
2121

src/Property/AtRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface AtRule extends Renderable, Commentable
1515
*
1616
* @var string
1717
*
18-
* @internal
18+
* @internal since 8.5.2
1919
*/
2020
public const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';
2121

@@ -24,7 +24,7 @@ interface AtRule extends Renderable, Commentable
2424
*
2525
* @var string
2626
*
27-
* @internal
27+
* @internal since 8.5.2
2828
*/
2929
public const SET_RULES = 'font-face/counter-style/page/swash/styleset/annotation';
3030

src/Property/KeyframeSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class KeyframeSelector extends Selector
1111
*
1212
* @var string
1313
*
14-
* @internal
14+
* @internal since 8.5.2
1515
*/
1616
public const SELECTOR_VALIDATION_RX = '/
1717
^(

src/Property/Selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Selector
5252
*
5353
* @var string
5454
*
55-
* @internal
55+
* @internal since 8.5.2
5656
*/
5757
public const SELECTOR_VALIDATION_RX = '/
5858
^(

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 9.0 in #511.
160+
* @deprecated since 8.7.0, 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 9.0 in #511.
175+
* @deprecated since 8.7.0, 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 9.0 in #511.
194+
* @deprecated since 8.7.0, 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 9.0 in #511.
255+
* @deprecated since 8.7.0, 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 9.0 in #511.
315+
* @deprecated since 8.7.0, 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 9.0 in #511.
384+
* @deprecated since 8.7.0, 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 9.0 in #511.
456+
* @deprecated since 8.7.0, 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 9.0 in #511.
539+
* @deprecated since 8.7.0, 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 9.0 in #511.
575+
* @deprecated since 8.7.0, 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 9.0 in #511.
590+
* @deprecated since 8.7.0, 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 9.0 in #511.
607+
* @deprecated since 8.7.0, 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 9.0 in #511.
624+
* @deprecated since 8.7.0, 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 9.0 in #511.
698+
* @deprecated since 8.7.0, will be removed without substitution in version 9.0 in #511
699699
*/
700700
public function createFontShorthand(): void
701701
{

0 commit comments

Comments
 (0)