{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3048","repository_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3048/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3048/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3048/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3048","id":256982855,"number":3048,"title":"Add a rule to root-namespace special compiled PHP functions","user":{"login":"nicolas-grekas","id":243674,"avatar_url":"https://avatars3.githubusercontent.com/u/243674?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-12T09:48:04Z","updated_at":"2017-09-12T09:57:57Z","closed_at":null,"author_association":"NONE","body":"Since PHP 7.0, some functions are replaced by opcodes, producing much faster code.\r\nYet, for this to work, these functions need to be referenced in the root namespace at compile time:\r\nEither there is no namespace, or they are prefixed by a `\\`.\r\nphp-cs-fixer should have a rule to list those functions and enforce adding this `\\` when used inside a namespaced file/class.\r\n\r\nHere is the exact list of functions that have this behavior:\r\nhttps://github.com/php/php-src/blob/f2db305fa4e9bd7d04d567822687ec714aedcdb5/Zend/zend_compile.c#L3872"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/328804513","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3048#issuecomment-328804513","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3048","id":328804513,"user":{"login":"keradus","id":2716794,"avatar_url":"https://avatars1.githubusercontent.com/u/2716794?v=4","gravatar_id":"","url":"https://api.github.com/users/keradus","html_url":"https://github.com/keradus","followers_url":"https://api.github.com/users/keradus/followers","following_url":"https://api.github.com/users/keradus/following{/other_user}","gists_url":"https://api.github.com/users/keradus/gists{/gist_id}","starred_url":"https://api.github.com/users/keradus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keradus/subscriptions","organizations_url":"https://api.github.com/users/keradus/orgs","repos_url":"https://api.github.com/users/keradus/repos","events_url":"https://api.github.com/users/keradus/events{/privacy}","received_events_url":"https://api.github.com/users/keradus/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T09:57:57Z","updated_at":"2017-09-12T09:57:57Z","author_association":"OWNER","body":"looks like a nice scenario\r\nplease open a PR to improve configuration of the fixer @nicolas-grekas :+1:"}}
{"actor":{"display_login":"keradus"}}