{"action":"created","issue":{"url":"https://api.github.com/repos/padraic/humbug/issues/3","labels_url":"https://api.github.com/repos/padraic/humbug/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/padraic/humbug/issues/3/comments","events_url":"https://api.github.com/repos/padraic/humbug/issues/3/events","html_url":"https://github.com/padraic/humbug/issues/3","id":53249390,"number":3,"title":"Mutation idea: removing \"return $this;\" statements","user":{"login":"roman-tsiupa-sociomantic","id":7254580,"avatar_url":"https://avatars.githubusercontent.com/u/7254580?v=3","gravatar_id":"","url":"https://api.github.com/users/roman-tsiupa-sociomantic","html_url":"https://github.com/roman-tsiupa-sociomantic","followers_url":"https://api.github.com/users/roman-tsiupa-sociomantic/followers","following_url":"https://api.github.com/users/roman-tsiupa-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/roman-tsiupa-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/roman-tsiupa-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roman-tsiupa-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/roman-tsiupa-sociomantic/orgs","repos_url":"https://api.github.com/users/roman-tsiupa-sociomantic/repos","events_url":"https://api.github.com/users/roman-tsiupa-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/roman-tsiupa-sociomantic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-02T12:04:07Z","updated_at":"2015-01-23T23:39:28Z","closed_at":"2015-01-07T18:44:17Z","body":"I often use methods that return $this so they are chainable. And more than a few time I saw that here and there I forget to check for that in my tests. I guess a lot of people may do the same. \r\n\r\nAt first I was thinking to suggest a mutation that would remove all return statements, but that seems a bit too much, which \"return $this\" is a very popular use case"},"comment":{"url":"https://api.github.com/repos/padraic/humbug/issues/comments/71285659","html_url":"https://github.com/padraic/humbug/issues/3#issuecomment-71285659","issue_url":"https://api.github.com/repos/padraic/humbug/issues/3","id":71285659,"user":{"login":"padraic","id":19780,"avatar_url":"https://avatars.githubusercontent.com/u/19780?v=3","gravatar_id":"","url":"https://api.github.com/users/padraic","html_url":"https://github.com/padraic","followers_url":"https://api.github.com/users/padraic/followers","following_url":"https://api.github.com/users/padraic/following{/other_user}","gists_url":"https://api.github.com/users/padraic/gists{/gist_id}","starred_url":"https://api.github.com/users/padraic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/padraic/subscriptions","organizations_url":"https://api.github.com/users/padraic/orgs","repos_url":"https://api.github.com/users/padraic/repos","events_url":"https://api.github.com/users/padraic/events{/privacy}","received_events_url":"https://api.github.com/users/padraic/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T23:39:28Z","updated_at":"2015-01-23T23:39:28Z","body":"@roman-tsiupa-sociomantic No problem ;). The hard task is going to be figuring out whether I can check return values of random vars for mutation. That...should be interesting."}}