Skip to content

Commit 00130ab

Browse files
authored
[CLEANUP] Rector: Change numeric return type based on strict returns type operations (#586)
This applies the rule NumericReturnTypeFromStrictScalarReturnsRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#numericreturntypefromstrictscalarreturnsrector Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent d275b22 commit 00130ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Parsing/ParserState.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,8 @@ public function backtrack($iAmount)
449449

450450
/**
451451
* @param string $sString
452-
*
453-
* @return int
454452
*/
455-
public function strlen($sString)
453+
public function strlen($sString): int
456454
{
457455
if ($this->oParserSettings->bMultibyteSupport) {
458456
return mb_strlen($sString, $this->sCharset);

0 commit comments

Comments
 (0)