{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/infection/infection/pulls/19","id":135877684,"html_url":"https://github.com/infection/infection/pull/19","diff_url":"https://github.com/infection/infection/pull/19.diff","patch_url":"https://github.com/infection/infection/pull/19.patch","issue_url":"https://api.github.com/repos/infection/infection/issues/19","number":19,"state":"closed","locked":false,"title":"Smart `ReturnValue` mutators","user":{"login":"borNfreee","id":3725595,"avatar_url":"https://avatars2.githubusercontent.com/u/3725595?v=4","gravatar_id":"","url":"https://api.github.com/users/borNfreee","html_url":"https://github.com/borNfreee","followers_url":"https://api.github.com/users/borNfreee/followers","following_url":"https://api.github.com/users/borNfreee/following{/other_user}","gists_url":"https://api.github.com/users/borNfreee/gists{/gist_id}","starred_url":"https://api.github.com/users/borNfreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borNfreee/subscriptions","organizations_url":"https://api.github.com/users/borNfreee/orgs","repos_url":"https://api.github.com/users/borNfreee/repos","events_url":"https://api.github.com/users/borNfreee/events{/privacy}","received_events_url":"https://api.github.com/users/borNfreee/received_events","type":"User","site_admin":false},"body":"This is a new feature that makes ReturnValue mutators more smart.\r\n\r\nIf method does not allow nullable return value, such mutators will be ignored.\r\n\r\n```php\r\nfunction length(array $a): int // will NOT be mutated\r\n{\r\n    return count($a);\r\n}\r\n```\r\n\r\nbut\r\n\r\n\r\n\r\n```php\r\nfunction length(array $a): ?int // will be mutated\r\n{\r\n    return count($a);\r\n}\r\n```\r\n\r\nMutation:\r\n\r\n```diff\r\nfunction length(array $a): ?int\r\n{\r\n-    return count($a);\r\n+    count($a);\r\n+    return null;\r\n}\r\n```\r\n\r\nThis reduces the number of useless mutations","created_at":"2017-08-15T19:53:52Z","updated_at":"2017-08-15T19:56:38Z","closed_at":"2017-08-15T19:56:38Z","merged_at":"2017-08-15T19:56:38Z","merge_commit_sha":"2fa89f0f48d453c9a51db7697bfed7da75ca4e20","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/infection/infection/pulls/19/commits","review_comments_url":"https://api.github.com/repos/infection/infection/pulls/19/comments","review_comment_url":"https://api.github.com/repos/infection/infection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infection/infection/issues/19/comments","statuses_url":"https://api.github.com/repos/infection/infection/statuses/919b06baef89e342fdba0c34350449887e48d505","head":{"label":"infection:smart-return","ref":"smart-return","sha":"919b06baef89e342fdba0c34350449887e48d505","user":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"repo":{"id":95741878,"name":"infection","full_name":"infection/infection","owner":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infection/infection","description":"AST based PHP Mutation Testing Framework","fork":false,"url":"https://api.github.com/repos/infection/infection","forks_url":"https://api.github.com/repos/infection/infection/forks","keys_url":"https://api.github.com/repos/infection/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infection/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infection/infection/teams","hooks_url":"https://api.github.com/repos/infection/infection/hooks","issue_events_url":"https://api.github.com/repos/infection/infection/issues/events{/number}","events_url":"https://api.github.com/repos/infection/infection/events","assignees_url":"https://api.github.com/repos/infection/infection/assignees{/user}","branches_url":"https://api.github.com/repos/infection/infection/branches{/branch}","tags_url":"https://api.github.com/repos/infection/infection/tags","blobs_url":"https://api.github.com/repos/infection/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infection/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infection/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/infection/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infection/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/infection/infection/languages","stargazers_url":"https://api.github.com/repos/infection/infection/stargazers","contributors_url":"https://api.github.com/repos/infection/infection/contributors","subscribers_url":"https://api.github.com/repos/infection/infection/subscribers","subscription_url":"https://api.github.com/repos/infection/infection/subscription","commits_url":"https://api.github.com/repos/infection/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/infection/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/infection/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/infection/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/infection/infection/contents/{+path}","compare_url":"https://api.github.com/repos/infection/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infection/infection/merges","archive_url":"https://api.github.com/repos/infection/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infection/infection/downloads","issues_url":"https://api.github.com/repos/infection/infection/issues{/number}","pulls_url":"https://api.github.com/repos/infection/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/infection/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/infection/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infection/infection/labels{/name}","releases_url":"https://api.github.com/repos/infection/infection/releases{/id}","deployments_url":"https://api.github.com/repos/infection/infection/deployments","created_at":"2017-06-29T05:29:49Z","updated_at":"2017-08-10T10:57:10Z","pushed_at":"2017-08-15T19:56:38Z","git_url":"git://github.com/infection/infection.git","ssh_url":"git@github.com:infection/infection.git","clone_url":"https://github.com/infection/infection.git","svn_url":"https://github.com/infection/infection","homepage":"https://infection.github.io","size":354,"stargazers_count":27,"watchers_count":27,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":27,"default_branch":"master"}},"base":{"label":"infection:master","ref":"master","sha":"2c59d4a0267e84bb14c03b66f7533991cb7813be","user":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"repo":{"id":95741878,"name":"infection","full_name":"infection/infection","owner":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infection/infection","description":"AST based PHP Mutation Testing Framework","fork":false,"url":"https://api.github.com/repos/infection/infection","forks_url":"https://api.github.com/repos/infection/infection/forks","keys_url":"https://api.github.com/repos/infection/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infection/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infection/infection/teams","hooks_url":"https://api.github.com/repos/infection/infection/hooks","issue_events_url":"https://api.github.com/repos/infection/infection/issues/events{/number}","events_url":"https://api.github.com/repos/infection/infection/events","assignees_url":"https://api.github.com/repos/infection/infection/assignees{/user}","branches_url":"https://api.github.com/repos/infection/infection/branches{/branch}","tags_url":"https://api.github.com/repos/infection/infection/tags","blobs_url":"https://api.github.com/repos/infection/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infection/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infection/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/infection/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infection/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/infection/infection/languages","stargazers_url":"https://api.github.com/repos/infection/infection/stargazers","contributors_url":"https://api.github.com/repos/infection/infection/contributors","subscribers_url":"https://api.github.com/repos/infection/infection/subscribers","subscription_url":"https://api.github.com/repos/infection/infection/subscription","commits_url":"https://api.github.com/repos/infection/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/infection/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/infection/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/infection/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/infection/infection/contents/{+path}","compare_url":"https://api.github.com/repos/infection/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infection/infection/merges","archive_url":"https://api.github.com/repos/infection/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infection/infection/downloads","issues_url":"https://api.github.com/repos/infection/infection/issues{/number}","pulls_url":"https://api.github.com/repos/infection/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/infection/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/infection/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infection/infection/labels{/name}","releases_url":"https://api.github.com/repos/infection/infection/releases{/id}","deployments_url":"https://api.github.com/repos/infection/infection/deployments","created_at":"2017-06-29T05:29:49Z","updated_at":"2017-08-10T10:57:10Z","pushed_at":"2017-08-15T19:56:38Z","git_url":"git://github.com/infection/infection.git","ssh_url":"git@github.com:infection/infection.git","clone_url":"https://github.com/infection/infection.git","svn_url":"https://github.com/infection/infection","homepage":"https://infection.github.io","size":354,"stargazers_count":27,"watchers_count":27,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/19"},"html":{"href":"https://github.com/infection/infection/pull/19"},"issue":{"href":"https://api.github.com/repos/infection/infection/issues/19"},"comments":{"href":"https://api.github.com/repos/infection/infection/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/infection/infection/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/infection/infection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infection/infection/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/infection/infection/statuses/919b06baef89e342fdba0c34350449887e48d505"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"borNfreee","id":3725595,"avatar_url":"https://avatars2.githubusercontent.com/u/3725595?v=4","gravatar_id":"","url":"https://api.github.com/users/borNfreee","html_url":"https://github.com/borNfreee","followers_url":"https://api.github.com/users/borNfreee/followers","following_url":"https://api.github.com/users/borNfreee/following{/other_user}","gists_url":"https://api.github.com/users/borNfreee/gists{/gist_id}","starred_url":"https://api.github.com/users/borNfreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borNfreee/subscriptions","organizations_url":"https://api.github.com/users/borNfreee/orgs","repos_url":"https://api.github.com/users/borNfreee/repos","events_url":"https://api.github.com/users/borNfreee/events{/privacy}","received_events_url":"https://api.github.com/users/borNfreee/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":421,"deletions":174,"changed_files":17}}
{"actor":{"display_login":"borNfreee"}}