Skip to content

Commit

Permalink
Made parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackBonjour committed Oct 19, 2017
1 parent 06b4e7a commit 0a90737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Binary.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function convertEndianness(string $hex) : string
* @param boolean $convert
* @return float
*/
public static function hexTo32Float(string $hex, bool $convert) : float
public static function hexTo32Float(string $hex, bool $convert = true) : float
{
if ($convert && self::isLittleEndian()) {
$hex = self::convertEndianness($hex);
Expand Down

0 comments on commit 0a90737

Please sign in to comment.