Skip to content

Commit 69278ac

Browse files
committed
[TASK] Deprecate greedy calculation of selector specificity
This constructor parameter is not used, and having the specificity calculation always done lazily is not a problem.
1 parent e1f8bd3 commit 69278ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Please also have a look at our
3232

3333
### Deprecated
3434

35+
- Deprecate greedy calculation of selector specificity (#1018)
3536
- Deprecate `__toString()` (#1006)
3637
- `OutputFormat` properties for space around list separators as an array (#880)
3738

src/Property/Selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static function isValid($selector)
8686

8787
/**
8888
* @param string $selector
89-
* @param bool $calculateSpecificity
89+
* @param bool $calculateSpecificity @deprecated since V8.8.0, will be removed in V9.0.0
9090
*/
9191
public function __construct($selector, $calculateSpecificity = false)
9292
{

0 commit comments

Comments
 (0)