{"action":"created","issue":{"url":"https://api.github.com/repos/ApiGen/ApiGen/issues/629","labels_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/629/comments","events_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/629/events","html_url":"https://github.com/ApiGen/ApiGen/issues/629","id":97008806,"number":629,"title":"Unfriendly crash on Trait method \"xyz\" was already imported","user":{"login":"Majkl578","id":144181,"avatar_url":"https://avatars.githubusercontent.com/u/144181?v=3","gravatar_id":"","url":"https://api.github.com/users/Majkl578","html_url":"https://github.com/Majkl578","followers_url":"https://api.github.com/users/Majkl578/followers","following_url":"https://api.github.com/users/Majkl578/following{/other_user}","gists_url":"https://api.github.com/users/Majkl578/gists{/gist_id}","starred_url":"https://api.github.com/users/Majkl578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Majkl578/subscriptions","organizations_url":"https://api.github.com/users/Majkl578/orgs","repos_url":"https://api.github.com/users/Majkl578/repos","events_url":"https://api.github.com/users/Majkl578/events{/privacy}","received_events_url":"https://api.github.com/users/Majkl578/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ApiGen/ApiGen/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ApiGen/ApiGen/milestones/11","html_url":"https://github.com/ApiGen/ApiGen/milestones/4.2","labels_url":"https://api.github.com/repos/ApiGen/ApiGen/milestones/11/labels","id":1232558,"number":11,"title":"4.2","description":"","creator":{"login":"jadb","id":33527,"avatar_url":"https://avatars.githubusercontent.com/u/33527?v=3","gravatar_id":"","url":"https://api.github.com/users/jadb","html_url":"https://github.com/jadb","followers_url":"https://api.github.com/users/jadb/followers","following_url":"https://api.github.com/users/jadb/following{/other_user}","gists_url":"https://api.github.com/users/jadb/gists{/gist_id}","starred_url":"https://api.github.com/users/jadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadb/subscriptions","organizations_url":"https://api.github.com/users/jadb/orgs","repos_url":"https://api.github.com/users/jadb/repos","events_url":"https://api.github.com/users/jadb/events{/privacy}","received_events_url":"https://api.github.com/users/jadb/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":5,"state":"open","created_at":"2015-07-29T23:28:35Z","updated_at":"2015-10-08T04:01:25Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-24T09:05:55Z","updated_at":"2015-10-10T15:02:10Z","closed_at":null,"body":"While building docs for Symfony 2.7.2 (full symfony/symfony package) I encountered the specified error. ApiGen immediately crashed, without providing any meaningful debug information.\r\n```\r\n$ apigen/bin/apigen gen --debug -s symfony -d symfony-docs --exclude *Tests* --exclude *examples* --exclude *docs* \r\nScanning sources and parsing\r\nParse error: \"Function twig_jsonencode_filter is defined multiple times in the file.\"\r\nParse error: \"Class Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeSessionHandler is defined multiple times in the file.\"\r\nParse error: \"Class Symfony\\Bridge\\PhpUnit\\DeprecationErrorHandler was redeclared (previously declared in file /tmp/symfony/vendor/symfony/phpunit-bridge/DeprecationErrorHandler.php).\"\r\nFound 3218 classes, 0 constants and 76 functions\r\nGenerating API documentation\r\n 2415/7164 [=========>------------------]  33% 7 mins/19 mins 250.2 MiB \r\nTrait method \"bar\" was already imported.\r\n```\r\n\r\nApiGen@a092c15eb6fd2e56f707837f34cccf62fdbfb8fd."},"comment":{"url":"https://api.github.com/repos/ApiGen/ApiGen/issues/comments/147096039","html_url":"https://github.com/ApiGen/ApiGen/issues/629#issuecomment-147096039","issue_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/629","id":147096039,"user":{"login":"gsouf","id":3215399,"avatar_url":"https://avatars.githubusercontent.com/u/3215399?v=3","gravatar_id":"","url":"https://api.github.com/users/gsouf","html_url":"https://github.com/gsouf","followers_url":"https://api.github.com/users/gsouf/followers","following_url":"https://api.github.com/users/gsouf/following{/other_user}","gists_url":"https://api.github.com/users/gsouf/gists{/gist_id}","starred_url":"https://api.github.com/users/gsouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsouf/subscriptions","organizations_url":"https://api.github.com/users/gsouf/orgs","repos_url":"https://api.github.com/users/gsouf/repos","events_url":"https://api.github.com/users/gsouf/events{/privacy}","received_events_url":"https://api.github.com/users/gsouf/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T15:02:10Z","updated_at":"2015-10-10T15:02:10Z","body":"Same happens here. \r\n\r\nThe following class imports many traits : https://github.com/gsouf/UForm/blob/88a024124bd6abed7d4f38bf501bbbca943a729f/src/UForm/Builder.php#L19\r\n\r\nSome of the traits have the add method (sometime abstract, sometime not):\r\n\r\n- https://github.com/gsouf/UForm/blob/88a024124bd6abed7d4f38bf501bbbca943a729f/src/UForm/Builder/FluentElement.php#L34\r\n- https://github.com/gsouf/UForm/blob/88a024124bd6abed7d4f38bf501bbbca943a729f/src/UForm/Builder/GroupBuilder.php#L28\r\n- https://github.com/gsouf/UForm/blob/88a024124bd6abed7d4f38bf501bbbca943a729f/src/UForm/Builder/InputBuilder.php#L29"}}