{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-php/issues/140","repository_url":"https://api.github.com/repos/AtomLinter/linter-php","labels_url":"https://api.github.com/repos/AtomLinter/linter-php/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-php/issues/140/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-php/issues/140/events","html_url":"https://github.com/AtomLinter/linter-php/issues/140","id":136381899,"number":140,"title":"No error for double methods","user":{"login":"eddy147","id":1145595,"avatar_url":"https://avatars.githubusercontent.com/u/1145595?v=3","gravatar_id":"","url":"https://api.github.com/users/eddy147","html_url":"https://github.com/eddy147","followers_url":"https://api.github.com/users/eddy147/followers","following_url":"https://api.github.com/users/eddy147/following{/other_user}","gists_url":"https://api.github.com/users/eddy147/gists{/gist_id}","starred_url":"https://api.github.com/users/eddy147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddy147/subscriptions","organizations_url":"https://api.github.com/users/eddy147/orgs","repos_url":"https://api.github.com/users/eddy147/repos","events_url":"https://api.github.com/users/eddy147/events{/privacy}","received_events_url":"https://api.github.com/users/eddy147/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtomLinter/linter-php/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"Arcanemagus","id":427137,"avatar_url":"https://avatars.githubusercontent.com/u/427137?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcanemagus","html_url":"https://github.com/Arcanemagus","followers_url":"https://api.github.com/users/Arcanemagus/followers","following_url":"https://api.github.com/users/Arcanemagus/following{/other_user}","gists_url":"https://api.github.com/users/Arcanemagus/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcanemagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcanemagus/subscriptions","organizations_url":"https://api.github.com/users/Arcanemagus/orgs","repos_url":"https://api.github.com/users/Arcanemagus/repos","events_url":"https://api.github.com/users/Arcanemagus/events{/privacy}","received_events_url":"https://api.github.com/users/Arcanemagus/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-02-25T13:00:48Z","updated_at":"2016-02-26T09:28:03Z","closed_at":"2016-02-25T23:24:47Z","body":"The linter does not give an error if I copy a method in a class.\r\nSo, let's say I have a class with a double function like this:\r\n\r\n```\r\n<?php\r\nnamespace Test;\r\n\r\nclass A\r\n{\r\n    public function foo()\r\n    {\r\n        \r\n    }\r\n\r\n    public function foo()\r\n    {\r\n        \r\n    }\r\n}\r\n\r\n```\r\n\r\ndoes not throw an error, but php -l does.\r\n\r\nOther stuff, like errors within a function (missing semi-colon, etc, are correctly picked up as errors, so the linter is working.\r\n\r\nAtom-editor version: 1.5.3\r\nlinter-php version: 1.1.8"},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-php/issues/comments/189187270","html_url":"https://github.com/AtomLinter/linter-php/issues/140#issuecomment-189187270","issue_url":"https://api.github.com/repos/AtomLinter/linter-php/issues/140","id":189187270,"user":{"login":"eddy147","id":1145595,"avatar_url":"https://avatars.githubusercontent.com/u/1145595?v=3","gravatar_id":"","url":"https://api.github.com/users/eddy147","html_url":"https://github.com/eddy147","followers_url":"https://api.github.com/users/eddy147/followers","following_url":"https://api.github.com/users/eddy147/following{/other_user}","gists_url":"https://api.github.com/users/eddy147/gists{/gist_id}","starred_url":"https://api.github.com/users/eddy147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddy147/subscriptions","organizations_url":"https://api.github.com/users/eddy147/orgs","repos_url":"https://api.github.com/users/eddy147/repos","events_url":"https://api.github.com/users/eddy147/events{/privacy}","received_events_url":"https://api.github.com/users/eddy147/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T09:28:03Z","updated_at":"2016-02-26T09:28:03Z","body":"Did not expect to get a fix *this quick*.\r\nGreat job, it works. Thank you!"}}