From b8bc80df6889af71d1e00a369cd3a4fd2d13cb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 8 Mar 2022 11:50:50 +0100 Subject: [PATCH] Fix: Use strpos --- test/Unit/RuleSet/ExplicitRuleSetTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Unit/RuleSet/ExplicitRuleSetTestCase.php b/test/Unit/RuleSet/ExplicitRuleSetTestCase.php index 64b976c4..be9839cf 100644 --- a/test/Unit/RuleSet/ExplicitRuleSetTestCase.php +++ b/test/Unit/RuleSet/ExplicitRuleSetTestCase.php @@ -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, );