Skip to content

Commit

Permalink
allow instantiation without params
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinosswald committed Oct 2, 2017
1 parent e000c11 commit 88bbb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] : '';
Expand Down

0 comments on commit 88bbb63

Please sign in to comment.