{"action":"created","issue":{"url":"https://api.github.com/repos/NeonXP/MathExecutor/issues/29","repository_url":"https://api.github.com/repos/NeonXP/MathExecutor","labels_url":"https://api.github.com/repos/NeonXP/MathExecutor/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/NeonXP/MathExecutor/issues/29/comments","events_url":"https://api.github.com/repos/NeonXP/MathExecutor/issues/29/events","html_url":"https://github.com/NeonXP/MathExecutor/issues/29","id":363892879,"node_id":"MDU6SXNzdWUzNjM4OTI4Nzk=","number":29,"title":"Uncaught Error","user":{"login":"adlabac","id":17377986,"node_id":"MDQ6VXNlcjE3Mzc3OTg2","avatar_url":"https://avatars1.githubusercontent.com/u/17377986?v=4","gravatar_id":"","url":"https://api.github.com/users/adlabac","html_url":"https://github.com/adlabac","followers_url":"https://api.github.com/users/adlabac/followers","following_url":"https://api.github.com/users/adlabac/following{/other_user}","gists_url":"https://api.github.com/users/adlabac/gists{/gist_id}","starred_url":"https://api.github.com/users/adlabac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adlabac/subscriptions","organizations_url":"https://api.github.com/users/adlabac/orgs","repos_url":"https://api.github.com/users/adlabac/repos","events_url":"https://api.github.com/users/adlabac/events{/privacy}","received_events_url":"https://api.github.com/users/adlabac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-26T07:30:28Z","updated_at":"2018-10-31T14:06:58Z","closed_at":"2018-10-31T14:06:58Z","author_association":"NONE","body":"If an expression begins or ends with an operator, instead of throwing an Exception the **Fatal error** occurs (the only working scenario is when the expression begins with the minus sign).\r\n\r\nFor example:\r\n\r\n`echo $calculator->execute('*1+2');` or `echo $calculator->execute('1+2-');`.\r\n\r\nAlso, in case when the expression begins with the plus sign it should be evaluated:\r\n\r\n`echo $calculator->execute('+1+2');`\r\n\r\nThe error message:\r\n\r\n> Fatal error: Uncaught Error: Call to a member function getValue() on null in ...\\vendor\\nxp\\math-executor\\src\\NXP\\Classes\\Token\\TokenPlus.php on line 50\r\n>\r\n>Error: Call to a member function getValue() on null in ...\\vendor\\nxp\\math-executor\\src\\NXP\\Classes\\Token\\TokenPlus.php on line 50\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NeonXP/MathExecutor/issues/comments/434700381","html_url":"https://github.com/NeonXP/MathExecutor/issues/29#issuecomment-434700381","issue_url":"https://api.github.com/repos/NeonXP/MathExecutor/issues/29","id":434700381,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDcwMDM4MQ==","user":{"login":"phpfui","id":7434059,"node_id":"MDQ6VXNlcjc0MzQwNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7434059?v=4","gravatar_id":"","url":"https://api.github.com/users/phpfui","html_url":"https://github.com/phpfui","followers_url":"https://api.github.com/users/phpfui/followers","following_url":"https://api.github.com/users/phpfui/following{/other_user}","gists_url":"https://api.github.com/users/phpfui/gists{/gist_id}","starred_url":"https://api.github.com/users/phpfui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpfui/subscriptions","organizations_url":"https://api.github.com/users/phpfui/orgs","repos_url":"https://api.github.com/users/phpfui/repos","events_url":"https://api.github.com/users/phpfui/events{/privacy}","received_events_url":"https://api.github.com/users/phpfui/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T14:06:58Z","updated_at":"2018-10-31T14:06:58Z","author_association":"COLLABORATOR","body":"This is fixed in the latest version."}}
{"actor":{"display_login":"phpfui"}}