Skip to content

Commit b00f138

Browse files
committed
[CLEANUP] Rector: Add return type to function like with return new
This applies the rule ReturnTypeFromReturnNewRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromreturnnewrector Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
1 parent ca9b3b8 commit b00f138

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Value/CSSFunction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ public function __construct($sName, $aArguments, $sSeparator = ',', $iLineNo = 0
3737
* @param ParserState $oParserState
3838
* @param bool $bIgnoreCase
3939
*
40-
* @return CSSFunction
41-
*
4240
* @throws SourceException
4341
* @throws UnexpectedEOFException
4442
* @throws UnexpectedTokenException
4543
*/
46-
public static function parse(ParserState $oParserState, $bIgnoreCase = false)
44+
public static function parse(ParserState $oParserState, $bIgnoreCase = false): CSSFunction
4745
{
4846
$mResult = $oParserState->parseIdentifier($bIgnoreCase);
4947
$oParserState->consume('(');

0 commit comments

Comments
 (0)