Skip to content

Commit

Permalink
Fix: Use strpos
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Mar 8, 2022
1 parent e4dc894 commit b8bc80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/ExplicitRuleSetTestCase.php
Expand Up @@ -36,7 +36,7 @@ final public function testRuleSetDoesNotConfigureRuleSets(): void
$rulesWithoutRulesForRuleSets = \array_filter(
$rules,
static function (string $nameOfRule): bool {
return '@' !== \mb_substr($nameOfRule, 0, 1);
return \mb_strpos($nameOfRule, '@') !== 0;
},
\ARRAY_FILTER_USE_KEY,
);
Expand Down

0 comments on commit b8bc80d

Please sign in to comment.