Skip to content

Commit

Permalink
Allow $location to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Jan 12, 2015
1 parent 4a97764 commit d4d8403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function normalizeBaseUrl($url)
*/
public static function normalizeLocation($location)
{
$location = trim($location, '/');
$location = trim((string) $location, '/');
FirebaseRestrictions::checkLocation($location);

return implode('/', explode('/', $location));
Expand Down

0 comments on commit d4d8403

Please sign in to comment.