From 417a03d4e497e7def8917c39da48f39b5f14a27a Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Wed, 19 Jun 2024 12:03:09 +0200 Subject: [PATCH] [CLEANUP] Rector: Change return type based on strict returns type operations This applies the rule BoolReturnTypeFromStrictScalarReturnsRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#boolreturntypefromstrictscalarreturnsrector Signed-off-by: Daniel Ziegenberg --- src/Parsing/ParserState.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index bb17133f..3f911518 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -361,10 +361,7 @@ public function consumeComment() return $mComment; } - /** - * @return bool - */ - public function isEnd() + public function isEnd(): bool { return $this->iCurrentPosition >= $this->iLength; }