Skip to content

[TASK] Remove thecodingmachine/safe dependency (part 4) - #1617

Merged
oliverklee merged 5 commits into
MyIntervals:mainfrom
SjorsO:drop-dependency-part-4
Aug 21, 2026
Merged

[TASK] Remove thecodingmachine/safe dependency (part 4)#1617
oliverklee merged 5 commits into
MyIntervals:mainfrom
SjorsO:drop-dependency-part-4

Conversation

@SjorsO

@SjorsO SjorsO commented Aug 21, 2026

Copy link
Copy Markdown
Contributor
  • This PR tackles all four files in the Property directory
  • Two of them can fail on invalid UTF-8, both of these have tests
  • The others don't use the /u modifier, and don't do backtracking, so they can't fail. These got an assert()

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 74.688% (+0.09%) from 74.597% — SjorsO:drop-dependency-part-4 into MyIntervals:main

Comment thread src/Property/Selector.php
{
// Note: We need to use `static::` here as the constant is overridden in the `KeyframeSelector` class.
$numberOfMatches = preg_match(static::SELECTOR_VALIDATION_RX, $selector);
$numberOfMatches = \preg_match(static::SELECTOR_VALIDATION_RX, $selector);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern is overridden in KeyframeSelector, so I've added a test for this in both Selector and KeyframeSelector. Both patterns fail the same way on invalid UTF-8

@oliverklee
oliverklee merged commit 6aab2a7 into MyIntervals:main Aug 21, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants