Skip to content

Commit ca9b3b8

Browse files
committed
[CLEANUP] Rector: Add union return type
This applies the rule ReturnUnionTypeRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returnuniontyperector Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent d2106ed commit ca9b3b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Value/Color.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ public function __construct(array $aColor, $iLineNo = 0)
2626
* @param ParserState $oParserState
2727
* @param bool $bIgnoreCase
2828
*
29-
* @return Color|CSSFunction
30-
*
3129
* @throws UnexpectedEOFException
3230
* @throws UnexpectedTokenException
3331
*/
34-
public static function parse(ParserState $oParserState, $bIgnoreCase = false)
32+
public static function parse(ParserState $oParserState, $bIgnoreCase = false): CSSFunction
3533
{
3634
$aColor = [];
3735
if ($oParserState->comes('#')) {

0 commit comments

Comments
 (0)