diff --git a/rules/DowngradePhp73/Tokenizer/FollowedByNewlineOnlyMaybeWithSemicolonAnalyzer.php b/rules/DowngradePhp73/Tokenizer/FollowedByNewlineOnlyMaybeWithSemicolonAnalyzer.php index 4832f94f..2ea4ef64 100644 --- a/rules/DowngradePhp73/Tokenizer/FollowedByNewlineOnlyMaybeWithSemicolonAnalyzer.php +++ b/rules/DowngradePhp73/Tokenizer/FollowedByNewlineOnlyMaybeWithSemicolonAnalyzer.php @@ -21,6 +21,6 @@ public function isFollowed(File $file, Node $node): bool return ! isset($oldTokens[$nextTokenPosition]) || isset($oldTokens[$nextTokenPosition][1]) && - \str_starts_with((string) $oldTokens[$nextTokenPosition][1], "\n"); + \str_starts_with($oldTokens[$nextTokenPosition][1], "\n"); } }