Skip to content

Commit

Permalink
Merge pull request #582 from ergebnis/fix/strpos
Browse files Browse the repository at this point in the history
Fix: Use `strpos`
  • Loading branch information
localheinz authored Mar 8, 2022
2 parents e4dc894 + 107d8e3 commit 0b2c5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/ExplicitRuleSetTestCase.php
Original file line number Diff line number Diff line change
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 0 !== \mb_strpos($nameOfRule, '@');
},
\ARRAY_FILTER_USE_KEY,
);
Expand Down

0 comments on commit 0b2c5ad

Please sign in to comment.