{"action":"created","issue":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/526","repository_url":"https://api.github.com/repos/nikic/PHP-Parser","labels_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/526/comments","events_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/526/events","html_url":"https://github.com/nikic/PHP-Parser/issues/526","id":346009731,"node_id":"MDU6SXNzdWUzNDYwMDk3MzE=","number":526,"title":"\"Throw on passing too few function arguments\" analyze","user":{"login":"aizuyan","id":6612863,"node_id":"MDQ6VXNlcjY2MTI4NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/6612863?v=4","gravatar_id":"","url":"https://api.github.com/users/aizuyan","html_url":"https://github.com/aizuyan","followers_url":"https://api.github.com/users/aizuyan/followers","following_url":"https://api.github.com/users/aizuyan/following{/other_user}","gists_url":"https://api.github.com/users/aizuyan/gists{/gist_id}","starred_url":"https://api.github.com/users/aizuyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aizuyan/subscriptions","organizations_url":"https://api.github.com/users/aizuyan/orgs","repos_url":"https://api.github.com/users/aizuyan/repos","events_url":"https://api.github.com/users/aizuyan/events{/privacy}","received_events_url":"https://api.github.com/users/aizuyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-31T02:15:20Z","updated_at":"2018-12-16T15:30:18Z","closed_at":null,"author_association":"NONE","body":"I want to migrate PHP from 5.4 to 7.2, and analyze code.\r\n\r\nbut from 7.0 to 7.1, had a  [backward incompatible changes](http://php.net/manual/en/migration71.incompatible.php)\r\n\r\nhow can i analyze **Throw on passing too few function arguments** incompatible changes, I have no idea, can you give me some advice, thanks very match\r\n\r\n```php\r\n<?php\r\nclass W\r\n{\r\n    public function test($a, $b)\r\n    {\r\n\r\n    }\r\n}\r\n\r\n$a = new W();\r\n$a->test();\r\n\r\nfunction test($param){}\r\ntest();\r\n```\r\nThe above example will output something similar to:\r\n```\r\nPHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function W::test(), 0 passed\r\n```"},"comment":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/comments/447651899","html_url":"https://github.com/nikic/PHP-Parser/issues/526#issuecomment-447651899","issue_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/526","id":447651899,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY1MTg5OQ==","user":{"login":"TomasVotruba","id":924196,"node_id":"MDQ6VXNlcjkyNDE5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/924196?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T15:30:18Z","updated_at":"2018-12-16T15:30:18Z","author_association":"CONTRIBUTOR","body":"It looks like you autoload the files by `include/require` in `composer.json`  or somewhere else.\r\n\r\nCould you provide full code you analyze this code with? "}}
{"actor":{"display_login":"TomasVotruba"}}