Skip to content

Fix LocationManager::get() return type and simplify it.#408

Open
gonssal wants to merge 2 commits into
stevebauman:masterfrom
micasino:fix-location-manager-get-return-hint-and-simplify-it
Open

Fix LocationManager::get() return type and simplify it.#408
gonssal wants to merge 2 commits into
stevebauman:masterfrom
micasino:fix-location-manager-get-return-hint-and-simplify-it

Conversation

@gonssal

@gonssal gonssal commented May 26, 2026

Copy link
Copy Markdown

LocationManager::get() has a return type of Position|bool, but it just returns Stevebauman\Location\Drivers\Driver::get() which has a return type of Position|false.

This PR fixes the inconsistency, while also simplifying the get() function, there's no need for the conditional and the $location variable.

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.

1 participant