{"action":"opened","issue":{"url":"https://api.github.com/repos/njasm/soundcloud/issues/28","labels_url":"https://api.github.com/repos/njasm/soundcloud/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/njasm/soundcloud/issues/28/comments","events_url":"https://api.github.com/repos/njasm/soundcloud/issues/28/events","html_url":"https://github.com/njasm/soundcloud/issues/28","id":124748717,"number":28,"title":"curl_setopt_array(): You must pass either an object or an array with the CURLOPT_HTTPHEADER argument","user":{"login":"lasselehtinen","id":1290186,"avatar_url":"https://avatars.githubusercontent.com/u/1290186?v=3","gravatar_id":"","url":"https://api.github.com/users/lasselehtinen","html_url":"https://github.com/lasselehtinen","followers_url":"https://api.github.com/users/lasselehtinen/followers","following_url":"https://api.github.com/users/lasselehtinen/following{/other_user}","gists_url":"https://api.github.com/users/lasselehtinen/gists{/gist_id}","starred_url":"https://api.github.com/users/lasselehtinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasselehtinen/subscriptions","organizations_url":"https://api.github.com/users/lasselehtinen/orgs","repos_url":"https://api.github.com/users/lasselehtinen/repos","events_url":"https://api.github.com/users/lasselehtinen/events{/privacy}","received_events_url":"https://api.github.com/users/lasselehtinen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T12:12:25Z","updated_at":"2016-01-04T12:12:25Z","closed_at":null,"body":"Hi,\r\n\r\nI started to get this error all the sudden. I am using version 2.2.4 at the moment.\r\n\r\nThe code is basically this:\r\n```\r\n$facade = new SoundcloudFacade($clientID, $clientSecret);\r\n$facade->userCredentials($username, $password);\r\n$response = $facade->get('/me')->request();\r\n```\r\nExceptions:\r\n```\r\nat HandleExceptions->handleError('2', 'curl_setopt_array(): You must pass either an object or an array with the CURLOPT_HTTPHEADER argument', '/home/vagrant/jobs/vendor/njasm/soundcloud/src/Soundcloud/Request/Request.php', '108', array('verb' => 'GET', 'curlHandler' => resource))\r\n\r\nat curl_setopt_array(resource, array(array('Content-Type: application/json', 'Accept: application/json', 'Authorization: OAuth 1-z-y-x'), true, false, '90', true)) in Request.php line 108\r\n```\r\n\r\nIf I dump the $this->options just before the curl_setopt_array, it looks like this:\r\n```php\r\narray:6 [▼\r\n  10023 => array:2 [▼\r\n    0 => \"Content-Type: application/x-www-form-urlencoded\"\r\n    1 => \"Accept: application/json\"\r\n  ]\r\n  19913 => true\r\n  64 => false\r\n  13 => 90\r\n  42 => true\r\n  52 => true\r\n]\r\n```\r\n\r\nThis is strange, because the constant 10023 is CURLOPT_HTTPHEADER and it is indeed an array. I upgraded to PHP7 recently, might that be the culprit somehow?"}}