Skip to content

Commit b52ff47

Browse files
committed
Make the calculators final
1 parent f958da0 commit b52ff47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CodeCalculator/CodeCalculatorFloat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* A Open Location Code calculator that uses float.
1010
* As such, this is usable on any PHP version. but may have unforeseen inaccuracy.
1111
*/
12-
class CodeCalculatorFloat extends AbstractCodeCalculator
12+
final 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.

src/CodeCalculator/CodeCalculatorInt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* A Open Location Code calculator that uses "long" int.
1111
* As such, this has ensured accuracy, but cannot be used in 32-bit PHP.
1212
*/
13-
class CodeCalculatorInt extends AbstractCodeCalculator
13+
final class CodeCalculatorInt extends AbstractCodeCalculator
1414
{
1515
// Value of the most significant latitude digit after it has been converted to an integer.
1616
// Note: since we are using 64-bit PHP, this can be an int.

0 commit comments

Comments
 (0)