Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make it static again
  • Loading branch information
oliverklee committed Mar 16, 2025
commit 31042196dccfd1694f6a9515dd8b540a7128cbcd
3 changes: 2 additions & 1 deletion src/Property/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class Selector implements Renderable
*/
public static function isValid(string $selector): bool
{
$numberOfMatches = \preg_match(self::SELECTOR_VALIDATION_RX, $selector);
// Note: We need to use `static::` here as the constant is overridden in the `KeyframeSelector` class.
$numberOfMatches = \preg_match(static::SELECTOR_VALIDATION_RX, $selector);

return $numberOfMatches === 1;
}
Expand Down