{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/207","repository_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel","labels_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/207/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/207/events","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/207","id":189041007,"number":207,"title":"php artisan adldap:import throws an exception","user":{"login":"eleftrik","id":6959298,"avatar_url":"https://avatars.githubusercontent.com/u/6959298?v=3","gravatar_id":"","url":"https://api.github.com/users/eleftrik","html_url":"https://github.com/eleftrik","followers_url":"https://api.github.com/users/eleftrik/followers","following_url":"https://api.github.com/users/eleftrik/following{/other_user}","gists_url":"https://api.github.com/users/eleftrik/gists{/gist_id}","starred_url":"https://api.github.com/users/eleftrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleftrik/subscriptions","organizations_url":"https://api.github.com/users/eleftrik/orgs","repos_url":"https://api.github.com/users/eleftrik/repos","events_url":"https://api.github.com/users/eleftrik/events{/privacy}","received_events_url":"https://api.github.com/users/eleftrik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-14T06:54:46Z","updated_at":"2016-11-14T14:29:05Z","closed_at":"2016-11-14T13:58:24Z","body":"Hi, when I launch\r\n\r\n`php artisan adldap:import --filter=\"(memberOf=CN=mygroup,CN=Users,DC=my,DC=company)\" --delete=true\r\n`\r\nI got this error:\r\n\r\n```\r\n  [Symfony\\Component\\Debug\\Exception\\FatalThrowableError]                                                                                               \r\n  Type error: Argument 1 passed to Adldap\\Laravel\\Commands\\Import::import() must be of the type array, object given, called in /var/www/intranet.asl1/vendor/adldap2/adldap2-laravel/src/Commands/Import.php on line 74                                                                                       \r\n\r\n```                                                                                                                                                        \r\n\r\nIf I edit that file and I insert, before line 74\r\n\r\n`$users = $users->toArray();`\r\n\r\neverything works correctly.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/comments/260348611","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/207#issuecomment-260348611","issue_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/207","id":260348611,"user":{"login":"stevebauman","id":6421846,"avatar_url":"https://avatars.githubusercontent.com/u/6421846?v=3","gravatar_id":"","url":"https://api.github.com/users/stevebauman","html_url":"https://github.com/stevebauman","followers_url":"https://api.github.com/users/stevebauman/followers","following_url":"https://api.github.com/users/stevebauman/following{/other_user}","gists_url":"https://api.github.com/users/stevebauman/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebauman/subscriptions","organizations_url":"https://api.github.com/users/stevebauman/orgs","repos_url":"https://api.github.com/users/stevebauman/repos","events_url":"https://api.github.com/users/stevebauman/events{/privacy}","received_events_url":"https://api.github.com/users/stevebauman/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T14:29:05Z","updated_at":"2016-11-14T14:29:05Z","body":"Yea you're using the `dev-master` version. If you're planning on having your application in production, I would use the stable releases though (insert `\"\"adldap2/adldap2-laravel\": \"v2.1.*\",` in your `composer.json`)."}}
{"actor":{"display_login":"stevebauman"}}