{"action":"closed","issue":{"url":"https://api.github.com/repos/dg/bypass-finals/issues/4","repository_url":"https://api.github.com/repos/dg/bypass-finals","labels_url":"https://api.github.com/repos/dg/bypass-finals/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dg/bypass-finals/issues/4/comments","events_url":"https://api.github.com/repos/dg/bypass-finals/issues/4/events","html_url":"https://github.com/dg/bypass-finals/issues/4","id":342000096,"node_id":"MDU6SXNzdWUzNDIwMDAwOTY=","number":4,"title":"Code broken when final is used as constant/method name","user":{"login":"Majkl578","id":144181,"node_id":"MDQ6VXNlcjE0NDE4MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/144181?v=4","gravatar_id":"","url":"https://api.github.com/users/Majkl578","html_url":"https://github.com/Majkl578","followers_url":"https://api.github.com/users/Majkl578/followers","following_url":"https://api.github.com/users/Majkl578/following{/other_user}","gists_url":"https://api.github.com/users/Majkl578/gists{/gist_id}","starred_url":"https://api.github.com/users/Majkl578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Majkl578/subscriptions","organizations_url":"https://api.github.com/users/Majkl578/orgs","repos_url":"https://api.github.com/users/Majkl578/repos","events_url":"https://api.github.com/users/Majkl578/events{/privacy}","received_events_url":"https://api.github.com/users/Majkl578/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-17T16:47:16Z","updated_at":"2018-07-20T09:34:07Z","closed_at":"2018-07-20T09:34:07Z","author_association":"NONE","body":"The following [valid](https://3v4l.org/gqDDX) code:\r\n```php\r\nclass Test\r\n{\r\n    public const FINAL = 123;\r\n\r\n    public static function final() {\r\n        echo __METHOD__, PHP_EOL, self::FINAL, PHP_EOL;\r\n    }\r\n}\r\n```\r\nbreaks when BypassFinals is enabled. This is because both the constant and function name are recognized as T_FINAL, but contextually not treated as keywords (modifiers), thanks to context sensitive lexer added in PHP 7.0: https://wiki.php.net/rfc/context_sensitive_lexer"}}
{"actor":{"display_login":"dg"}}