Skip to content

Commit 3104219

Browse files
committed
Make it static again
1 parent db81d31 commit 3104219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Property/Selector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ class Selector implements Renderable
4141
*/
4242
public static function isValid(string $selector): bool
4343
{
44-
$numberOfMatches = \preg_match(self::SELECTOR_VALIDATION_RX, $selector);
44+
// Note: We need to use `static::` here as the constant is overridden in the `KeyframeSelector` class.
45+
$numberOfMatches = \preg_match(static::SELECTOR_VALIDATION_RX, $selector);
4546

4647
return $numberOfMatches === 1;
4748
}

0 commit comments

Comments
 (0)