{"action":"closed","issue":{"url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/454","repository_url":"https://api.github.com/repos/kalessil/phpinspectionsea","labels_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/454/comments","events_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/454/events","html_url":"https://github.com/kalessil/phpinspectionsea/issues/454","id":248780240,"number":454,"title":"Yoda style condition when fixing in_array misused","user":{"login":"CZechBoY","id":4347332,"avatar_url":"https://avatars0.githubusercontent.com/u/4347332?v=4","gravatar_id":"","url":"https://api.github.com/users/CZechBoY","html_url":"https://github.com/CZechBoY","followers_url":"https://api.github.com/users/CZechBoY/followers","following_url":"https://api.github.com/users/CZechBoY/following{/other_user}","gists_url":"https://api.github.com/users/CZechBoY/gists{/gist_id}","starred_url":"https://api.github.com/users/CZechBoY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CZechBoY/subscriptions","organizations_url":"https://api.github.com/users/CZechBoY/orgs","repos_url":"https://api.github.com/users/CZechBoY/repos","events_url":"https://api.github.com/users/CZechBoY/events{/privacy}","received_events_url":"https://api.github.com/users/CZechBoY/received_events","type":"User","site_admin":false},"labels":[{"id":462160561,"url":"https://api.github.com/repos/kalessil/phpinspectionsea/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":520350747,"url":"https://api.github.com/repos/kalessil/phpinspectionsea/labels/fixed","name":"fixed","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"kalessil","id":1577185,"avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false},"assignees":[{"login":"kalessil","id":1577185,"avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kalessil/phpinspectionsea/milestones/18","html_url":"https://github.com/kalessil/phpinspectionsea/milestone/18","labels_url":"https://api.github.com/repos/kalessil/phpinspectionsea/milestones/18/labels","id":2841241,"number":18,"title":"2.3.12","description":null,"creator":{"login":"kalessil","id":1577185,"avatar_url":"https://avatars2.githubusercontent.com/u/1577185?v=4","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":41,"state":"open","created_at":"2017-10-16T17:58:12Z","updated_at":"2017-11-09T20:46:41Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-08-08T16:54:20Z","updated_at":"2017-11-09T20:46:41Z","closed_at":"2017-11-09T20:46:41Z","author_association":"NONE","body":"Hi,\r\nI have this code\r\n```php\r\nif (in_array($code, [1400], true)) { // error: '1400 === $code' should be used instead.\r\n   return 'abc';\r\n}\r\n```\r\nthat's ok, it should be `$code === 1400`, but not in yoda style. Why not? Because there is another inspection on yoda style conditions..."}}
{"actor":{"display_login":"kalessil"}}