{"action":"opened","issue":{"url":"https://api.github.com/repos/TypiCMS/History/issues/5","labels_url":"https://api.github.com/repos/TypiCMS/History/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/TypiCMS/History/issues/5/comments","events_url":"https://api.github.com/repos/TypiCMS/History/issues/5/events","html_url":"https://github.com/TypiCMS/History/issues/5","id":125145101,"number":5,"title":"wierd problem with the empty method","user":{"login":"webfactorybulgaria","id":1948577,"avatar_url":"https://avatars.githubusercontent.com/u/1948577?v=3","gravatar_id":"","url":"https://api.github.com/users/webfactorybulgaria","html_url":"https://github.com/webfactorybulgaria","followers_url":"https://api.github.com/users/webfactorybulgaria/followers","following_url":"https://api.github.com/users/webfactorybulgaria/following{/other_user}","gists_url":"https://api.github.com/users/webfactorybulgaria/gists{/gist_id}","starred_url":"https://api.github.com/users/webfactorybulgaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webfactorybulgaria/subscriptions","organizations_url":"https://api.github.com/users/webfactorybulgaria/orgs","repos_url":"https://api.github.com/users/webfactorybulgaria/repos","events_url":"https://api.github.com/users/webfactorybulgaria/events{/privacy}","received_events_url":"https://api.github.com/users/webfactorybulgaria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-06T09:57:19Z","updated_at":"2016-01-06T09:57:19Z","closed_at":null,"body":"Hi, \r\nWe have a weird problem with the empty method in History/src/Repositories/EloquentHistory.php. A simple code like this:\r\nclass test\r\n{\r\n    public function empty()\r\n    {\r\n        return 1;\r\n    }\r\n}\r\nresults in \r\n\"Parse error: syntax error, unexpected 'empty' (T_EMPTY), expecting identifier (T_STRING) in  ...\"\r\nI tested this on a couple of servers with PHP 5.6 and PHP 5.3. PHP 7 doesn't seem to have problem with this. I guess \"empty\" is a reserved word. Maybe you could use the name \"clear\" instead..."}}