Skip to content

Commit

Permalink
Use null as default
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Sep 7, 2019
1 parent 08f20e9 commit 4edf26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public function setDefaultDriver()
/**
* Retrieve the users location.
*
* @param array|string $ip
* @param string|null $ip
*
* @return \Stevebauman\Location\Position|bool
*/
public function get($ip = '')
public function get($ip = null)
{
if ($location = $this->driver->get($ip ?: $this->getClientIP())) {
return $location;
Expand Down

0 comments on commit 4edf26a

Please sign in to comment.