Skip to content

Conversation

@oliverklee
Copy link
Collaborator

No description provided.

@coveralls
Copy link

Coverage Status

coverage: 49.156%. remained the same
when pulling 822c875 on cleanup/tests-phpstan
into 537f5e8 on main.

$contentRules = $ruleSet->getRules('content');
$firstContentRuleAsString = $contentRules[0]->getValue()->__toString();
if ($selector == '.test-1') {
if ($selector === '.test-1') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It won't make any difference comparing with strings other than "0", but better to use === anyway.

Comment on lines +1242 to +1243
self::assertInstanceOf(URL::class, $urlRule->getValue());
self::assertInstanceOf(CalcFunction::class, $calcRule->getValue());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe assertInstanceOf wasn't around at the time these tests were implemented. Good improvement.

@JakeQZ JakeQZ merged commit 7d75688 into main Feb 14, 2025
21 checks passed
@JakeQZ JakeQZ deleted the cleanup/tests-phpstan branch February 14, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants