From bb59ffc59ae29a92d45994500de41186b13ab6c5 Mon Sep 17 00:00:00 2001 From: Lars Schou Date: Tue, 17 Dec 2019 08:36:58 +0100 Subject: [PATCH] Typecast to an array - this makes it possible to call ->colors->get() withput parameters, without throwing a nullpointer. Just a neat PHP-thing :) --- src/Google/Service/Calendar/Resource/Colors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Google/Service/Calendar/Resource/Colors.php b/src/Google/Service/Calendar/Resource/Colors.php index 1c31eb88bc8..43d907628af 100644 --- a/src/Google/Service/Calendar/Resource/Colors.php +++ b/src/Google/Service/Calendar/Resource/Colors.php @@ -34,7 +34,7 @@ class Google_Service_Calendar_Resource_Colors extends Google_Service_Resource public function get($optParams = array()) { $params = array(); - $params = array_merge($params, $optParams); + $params = array_merge($params, (array) $optParams); return $this->call('get', array($params), "Google_Service_Calendar_Colors"); } }