Skip to content

Commit d123845

Browse files
committed
Fix bug
1 parent 0c48551 commit d123845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CodeCalculator/CodeCalculatorFloat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class CodeCalculatorFloat extends AbstractCodeCalculator
1313
{
1414
// Value of the most significant latitude digit after it has been converted to an integer.
1515
// Note: to ensure 32bit PHP compatibility, this is now a precisely-represented float.
16-
public const float LAT_MSP_VALUE = OpenLocationCode::LAT_INTEGER_MULTIPLIER * OpenLocationCode::ENCODING_BASE * OpenLocationCode::ENCODING_BASE;
16+
public const float LAT_MSP_VALUE = self::LAT_INTEGER_MULTIPLIER * OpenLocationCode::ENCODING_BASE * OpenLocationCode::ENCODING_BASE;
1717

1818
// Value of the most significant longitude digit after it has been converted to an integer.
1919
// Note: to ensure 32bit PHP compatibility, this is now a precisely-represented float.
20-
public const float LNG_MSP_VALUE = OpenLocationCode::LNG_INTEGER_MULTIPLIER * OpenLocationCode::ENCODING_BASE * OpenLocationCode::ENCODING_BASE;
20+
public const float LNG_MSP_VALUE = self::LNG_INTEGER_MULTIPLIER * OpenLocationCode::ENCODING_BASE * OpenLocationCode::ENCODING_BASE;
2121

2222
protected function generateRevOlcCode(float $latitude, float $longitude, int $codeLength): string
2323
{

0 commit comments

Comments
 (0)