{"action":"opened","issue":{"url":"https://api.github.com/repos/crossjoin/Browscap/issues/27","repository_url":"https://api.github.com/repos/crossjoin/Browscap","labels_url":"https://api.github.com/repos/crossjoin/Browscap/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/crossjoin/Browscap/issues/27/comments","events_url":"https://api.github.com/repos/crossjoin/Browscap/issues/27/events","html_url":"https://github.com/crossjoin/Browscap/issues/27","id":168466524,"number":27,"title":"Exception when implementing sample","user":{"login":"mimmi20","id":1120192,"avatar_url":"https://avatars.githubusercontent.com/u/1120192?v=3","gravatar_id":"","url":"https://api.github.com/users/mimmi20","html_url":"https://github.com/mimmi20","followers_url":"https://api.github.com/users/mimmi20/followers","following_url":"https://api.github.com/users/mimmi20/following{/other_user}","gists_url":"https://api.github.com/users/mimmi20/gists{/gist_id}","starred_url":"https://api.github.com/users/mimmi20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimmi20/subscriptions","organizations_url":"https://api.github.com/users/mimmi20/orgs","repos_url":"https://api.github.com/users/mimmi20/repos","events_url":"https://api.github.com/users/mimmi20/events{/privacy}","received_events_url":"https://api.github.com/users/mimmi20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-30T13:04:39Z","updated_at":"2016-07-30T13:04:39Z","closed_at":null,"body":"I tried to implement the sample script for version 2.0 from the readme.md. \r\n\r\n```php\r\n// Get array\r\n$arrayFormatter = new \\Crossjoin\\Browscap\\Formatter\\PhpGetBrowser(\r\n    \\Crossjoin\\Browscap\\Formatter\\PhpGetBrowser::RETURN_ARRAY\r\n);\r\n$browscap->setFormatter($arrayFormatter);\r\n```\r\n\r\nI got an InvalidArgumentException on that possition `Invalid type 'integer' for argument 'returnArray'`.\r\n\r\nPlease update the sample."}}
{"actor":{"display_login":"mimmi20"}}