Skip to content

Commit a3bb05d

Browse files
committed
[CLEANUP] Rector: Add return type from strict return type of call
This applies the rule ReturnTypeFromStrictTypedCallRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromstricttypedcallrector Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 4391458 commit a3bb05d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Parser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ public function getCharset(): void
5151
/**
5252
* Parses the CSS provided to the constructor and creates a `Document` from it.
5353
*
54-
* @return Document
55-
*
5654
* @throws SourceException
5755
*/
58-
public function parse()
56+
public function parse(): Document
5957
{
6058
return Document::parse($this->oParserState);
6159
}

src/Parsing/ParserState.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,10 @@ public function consume($mValue = 1): string
308308
* @param string $mExpression
309309
* @param int|null $iMaxLength
310310
*
311-
* @return string
312-
*
313311
* @throws UnexpectedEOFException
314312
* @throws UnexpectedTokenException
315313
*/
316-
public function consumeExpression($mExpression, $iMaxLength = null)
314+
public function consumeExpression($mExpression, $iMaxLength = null): string
317315
{
318316
$aMatches = null;
319317
$sInput = $iMaxLength !== null ? $this->peek($iMaxLength) : $this->inputLeft();

0 commit comments

Comments
 (0)