Skip to content

Conversation

@MiniCodeMonkey
Copy link
Member

Updated the return types for geocode() and reverse() methods from mixed to array to match what toResponse() actually returns.

Since json_decode() is called with true for the associative parameter, it always returns an array, never an object.

Fixes #17

The toResponse method always returns an array since json_decode is called with associative=true. Updated method signatures and PHPDoc to reflect this.

Fixes #17
@MiniCodeMonkey MiniCodeMonkey merged commit 9915dc2 into master Aug 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Geocode Class "toResponse" always returns an array. "array|object" return type in "geocode" function should be updated.

2 participants