{"action":"created","issue":{"url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/issues/9","labels_url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/issues/9/comments","events_url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/issues/9/events","html_url":"https://github.com/ciaranmcnulty/phpspec-typehintedmethods/pull/9","id":54769321,"number":9,"title":"Generate the argument name based on the typehint","user":{"login":"gnugat","id":793185,"avatar_url":"https://avatars.githubusercontent.com/u/793185?v=3","gravatar_id":"","url":"https://api.github.com/users/gnugat","html_url":"https://github.com/gnugat","followers_url":"https://api.github.com/users/gnugat/followers","following_url":"https://api.github.com/users/gnugat/following{/other_user}","gists_url":"https://api.github.com/users/gnugat/gists{/gist_id}","starred_url":"https://api.github.com/users/gnugat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnugat/subscriptions","organizations_url":"https://api.github.com/users/gnugat/orgs","repos_url":"https://api.github.com/users/gnugat/repos","events_url":"https://api.github.com/users/gnugat/events{/privacy}","received_events_url":"https://api.github.com/users/gnugat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-19T14:19:48Z","updated_at":"2015-01-20T14:22:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/pulls/9","html_url":"https://github.com/ciaranmcnulty/phpspec-typehintedmethods/pull/9","diff_url":"https://github.com/ciaranmcnulty/phpspec-typehintedmethods/pull/9.diff","patch_url":"https://github.com/ciaranmcnulty/phpspec-typehintedmethods/pull/9.patch"},"body":"Currently the generated argument name is \"$argument1\", \"$argument2\", etc.\r\nBut if the argument is typehinted, we can name it after its type, for e.g. \"$urlGenerator\" or \"$flabbergastRepository\"."},"comment":{"url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/issues/comments/70660039","html_url":"https://github.com/ciaranmcnulty/phpspec-typehintedmethods/pull/9#issuecomment-70660039","issue_url":"https://api.github.com/repos/ciaranmcnulty/phpspec-typehintedmethods/issues/9","id":70660039,"user":{"login":"gnugat","id":793185,"avatar_url":"https://avatars.githubusercontent.com/u/793185?v=3","gravatar_id":"","url":"https://api.github.com/users/gnugat","html_url":"https://github.com/gnugat","followers_url":"https://api.github.com/users/gnugat/followers","following_url":"https://api.github.com/users/gnugat/following{/other_user}","gists_url":"https://api.github.com/users/gnugat/gists{/gist_id}","starred_url":"https://api.github.com/users/gnugat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnugat/subscriptions","organizations_url":"https://api.github.com/users/gnugat/orgs","repos_url":"https://api.github.com/users/gnugat/repos","events_url":"https://api.github.com/users/gnugat/events{/privacy}","received_events_url":"https://api.github.com/users/gnugat/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T14:22:26Z","updated_at":"2015-01-20T14:22:26Z","body":"Should be okay now: each type has its own count, and arguments are suffixed according to this count only if there is more than one occurrence."}}