From 88bbb63a5b770403c49ab1dac679223bae789983 Mon Sep 17 00:00:00 2001 From: Marvin Osswald Date: Mon, 2 Oct 2017 17:04:02 +0200 Subject: [PATCH] allow instantiation without params --- src/Instagram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instagram.php b/src/Instagram.php index 80d79e7..4a8619d 100644 --- a/src/Instagram.php +++ b/src/Instagram.php @@ -52,7 +52,7 @@ class Instagram { * @param array $params * @param array $config */ - public function __construct(array $params, array $config = []) + public function __construct(array $params = [], array $config = []) { $this->accessToken = array_key_exists('accessToken',$params) ? $params['accessToken'] : ''; $this->clientId = array_key_exists('clientId',$params) ? $params['clientId'] : '';