We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9385ac commit 1614471Copy full SHA for 1614471
src/OpenLocationCode.php
@@ -253,6 +253,11 @@ public function decode(): CodeArea
253
);
254
}
255
256
+ public function __toString(): string
257
+ {
258
+ return $this->code;
259
+ }
260
+
261
/**
262
* Returns short Open Location Code from the full Open Location Code created by removing four or six digits,
263
* depending on the provided reference poi9nt. It removes as many digits as possible.
@@ -447,11 +452,6 @@ public static function isValidCode(?string $code): bool
447
452
return true;
448
453
449
454
450
- public function __toString(): string
451
- {
- return $this->code;
- }
-
455
456
* Returns whether this Open Location code is valid.
457
* @return bool True if it is a valid full or short code.
0 commit comments