Skip to content

Commit

Permalink
[TASK] Add another native return type declaration (#774)
Browse files Browse the repository at this point in the history
As suggested by Rector.
  • Loading branch information
oliverklee authored Nov 17, 2024
1 parent 2c49003 commit c7e6118
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Value/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ public static function parse(ParserState $oParserState, bool $bIgnoreCase = fals
return new Color($aColor, $oParserState->currentLine());
}

/**
* @return float
*/
private static function mapRange(float $fVal, float $fFromMin, float $fFromMax, float $fToMin, float $fToMax)
private static function mapRange(float $fVal, float $fFromMin, float $fFromMax, float $fToMin, float $fToMax): float
{
$fFromRange = $fFromMax - $fFromMin;
$fToRange = $fToMax - $fToMin;
Expand Down

0 comments on commit c7e6118

Please sign in to comment.