Skip to content

Commit 34e1988

Browse files
committed
[TASK] Drop 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 f912e71 commit 34e1988

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGELOG.md

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

4141
### Removed
4242

43+
- Drop greedy calculation of selector specificity (#1021)
4344
- Drop `getLineNo()` from the `Renderable` interface (#1038)
4445
- Remove `OutputFormat::level()` (#874)
4546
- Remove expansion of shorthand properties (#838)

src/Property/Selector.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,9 @@ public static function isValid(string $selector)
8787
return \preg_match(static::SELECTOR_VALIDATION_RX, $selector);
8888
}
8989

90-
/**
91-
* @param bool $calculateSpecificity @deprecated since V8.8.0, will be removed in V9.0.0
92-
*/
93-
public function __construct(string $selector, bool $calculateSpecificity = false)
90+
public function __construct(string $selector)
9491
{
9592
$this->setSelector($selector);
96-
if ($calculateSpecificity) {
97-
$this->getSpecificity();
98-
}
9993
}
10094

10195
public function getSelector(): string

0 commit comments

Comments
 (0)