Skip to content

Commit

Permalink
Make the calculators final
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorial1024 committed Oct 23, 2024
1 parent f958da0 commit b52ff47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CodeCalculator/CodeCalculatorFloat.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* A Open Location Code calculator that uses float.
* As such, this is usable on any PHP version. but may have unforeseen inaccuracy.
*/
class CodeCalculatorFloat extends AbstractCodeCalculator
final class CodeCalculatorFloat extends AbstractCodeCalculator
{
// Value of the most significant latitude digit after it has been converted to an integer.
// Note: to ensure 32bit PHP compatibility, this is now a precisely-represented float.
Expand Down
2 changes: 1 addition & 1 deletion src/CodeCalculator/CodeCalculatorInt.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* A Open Location Code calculator that uses "long" int.
* As such, this has ensured accuracy, but cannot be used in 32-bit PHP.
*/
class CodeCalculatorInt extends AbstractCodeCalculator
final class CodeCalculatorInt extends AbstractCodeCalculator
{
// Value of the most significant latitude digit after it has been converted to an integer.
// Note: since we are using 64-bit PHP, this can be an int.
Expand Down

0 comments on commit b52ff47

Please sign in to comment.