Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
furqansiddiqui committed May 29, 2018
1 parent b2c6b93 commit 38b24b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BcMath.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BcMath
* @param $hex
* @return int|float|string
*/
public static function HexDec($hex)
public static function HexDec(string $hex): string
{
if (strlen($hex) == 1) {
return strval(hexdec($hex));
Expand All @@ -39,7 +39,7 @@ public static function HexDec($hex)
* @param $dec
* @return string
*/
public static function DecHex($dec)
public static function DecHex($dec): string
{
$last = bcmod($dec, 16);
$remain = bcdiv(bcsub($dec, $last), 16);
Expand Down

0 comments on commit 38b24b7

Please sign in to comment.