Skip to content

Commit 91eca64

Browse files
committed
Mention when deprecated code will be removed
Mark the code as to be removed in the next major version (which would be in line with Semantic versioning).
1 parent 254248f commit 91eca64

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/CSSList/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getAllDeclarationBlocks()
4747
}
4848

4949
/**
50-
* @deprecated use getAllDeclarationBlocks()
50+
* @deprecated will be removed in version 9.0; use `getAllDeclarationBlocks()` instead
5151
*/
5252
public function getAllSelectors()
5353
{

src/Rule/Rule.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ public function setValue($mValue)
193193
*
194194
* @return RuleValueList
195195
*
196-
* @deprecated Old-Style 2-dimensional array given. Retained for (some) backwards-compatibility.
196+
* @deprecated will be removed in version 9.0
197+
* Old-Style 2-dimensional array given. Retained for (some) backwards-compatibility.
197198
* Use `setValue()` instead and wrap the value inside a RuleValueList if necessary.
198199
*/
199200
public function setValues(array $aSpaceSeparatedValues)
@@ -232,7 +233,8 @@ public function setValues(array $aSpaceSeparatedValues)
232233
/**
233234
* @return array<int, array<int, RuleValueList>>
234235
*
235-
* @deprecated Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility.
236+
* @deprecated will be removed in version 9.0
237+
* Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility.
236238
* Use `getValue()` instead and check for the existence of a (nested set of) ValueList object(s).
237239
*/
238240
public function getValues()

src/RuleSet/DeclarationBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function removeSelector($mSelector)
146146
/**
147147
* @return array<int, Selector|string>
148148
*
149-
* @deprecated use `getSelectors()`
149+
* @deprecated will be removed in version 9.0; use `getSelectors()` instead
150150
*/
151151
public function getSelector()
152152
{
@@ -159,7 +159,7 @@ public function getSelector()
159159
*
160160
* @return void
161161
*
162-
* @deprecated use `setSelectors()`
162+
* @deprecated will be removed in version 9.0; use `setSelectors()` instead
163163
*/
164164
public function setSelector($mSelector, $oList = null)
165165
{

0 commit comments

Comments
 (0)