Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Please also have a look at our

### Fixed

- Use typesafe versions of PHP functions (#1379, #1380, #1382)
- Use typesafe versions of PHP functions (#1379, #1380, #1382, #1383)

### Documentation

Expand Down
4 changes: 3 additions & 1 deletion src/Rule/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
use Sabberworm\CSS\Value\RuleValueList;
use Sabberworm\CSS\Value\Value;

use function Safe\preg_match;

/**
* `Rule`s just have a string key (the rule) and a 'Value'.
*
Expand Down Expand Up @@ -100,7 +102,7 @@ public static function parse(ParserState $parserState, array $commentsBeforeRule
*/
private static function listDelimiterForRule(string $rule): array
{
if (\preg_match('/^font($|-)/', $rule)) {
if (preg_match('/^font($|-)/', $rule) === 1) {
return [',', '/', ' '];
}

Expand Down