From d4d84030eb7c93b6daac6d13119a63435829a2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81ro=CC=82me=20Gamez?= Date: Mon, 12 Jan 2015 16:09:02 +0100 Subject: [PATCH] Allow $location to be null --- src/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.php b/src/Utils.php index 11e5c0b7..0b2ee398 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -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));