Skip to content

Commit d6fdff0

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. This is the V8.x backport of #1018.
1 parent 5ec4617 commit d6fdff0

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
@@ -17,6 +17,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1717

1818
### Deprecated
1919

20+
- Deprecate greedy calculation of selector specificity (#1018)
2021
- Deprecate the IE hack in `Rule` (#993, #1003)
2122
- `OutputFormat` properties for space around list separators as an array (#880)
2223
- Deprecate `OutputFormat::level()` (#870)

src/Property/Selector.php

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

8989
/**
9090
* @param string $sSelector
91-
* @param bool $bCalculateSpecificity
91+
* @param bool $bCalculateSpecificity @deprecated since V8.8.0, will be removed in V9.0.0
9292
*/
9393
public function __construct($sSelector, $bCalculateSpecificity = false)
9494
{

0 commit comments

Comments
 (0)