Skip to content

Commit 59c23ac

Browse files
authored
Merge pull request #289 from oliverklee/task/deprecated
Mention when deprecated code will be removed
2 parents babcd7e + 91eca64 commit 59c23ac

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)