{"action":"created","issue":{"url":"https://api.github.com/repos/hnw/php-timecop/issues/1","repository_url":"https://api.github.com/repos/hnw/php-timecop","labels_url":"https://api.github.com/repos/hnw/php-timecop/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hnw/php-timecop/issues/1/comments","events_url":"https://api.github.com/repos/hnw/php-timecop/issues/1/events","html_url":"https://github.com/hnw/php-timecop/issues/1","id":9018862,"number":1,"title":"TimeCopDateTime should extend DateTime","user":{"login":"kagux","id":1159573,"avatar_url":"https://avatars.githubusercontent.com/u/1159573?v=3","gravatar_id":"","url":"https://api.github.com/users/kagux","html_url":"https://github.com/kagux","followers_url":"https://api.github.com/users/kagux/followers","following_url":"https://api.github.com/users/kagux/following{/other_user}","gists_url":"https://api.github.com/users/kagux/gists{/gist_id}","starred_url":"https://api.github.com/users/kagux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kagux/subscriptions","organizations_url":"https://api.github.com/users/kagux/orgs","repos_url":"https://api.github.com/users/kagux/repos","events_url":"https://api.github.com/users/kagux/events{/privacy}","received_events_url":"https://api.github.com/users/kagux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-12-05T13:30:30Z","updated_at":"2016-05-26T20:25:34Z","closed_at":null,"body":"As ```new DateTime``` returns an instance of ```TimeCopDateTime``` it breaks all methods that expect instance of ```DateTime```.\nThis only happens when I execute php through php-fpm. Inheritance works fine in CLI"},"comment":{"url":"https://api.github.com/repos/hnw/php-timecop/issues/comments/221984271","html_url":"https://github.com/hnw/php-timecop/issues/1#issuecomment-221984271","issue_url":"https://api.github.com/repos/hnw/php-timecop/issues/1","id":221984271,"user":{"login":"francisbesset","id":471525,"avatar_url":"https://avatars.githubusercontent.com/u/471525?v=3","gravatar_id":"","url":"https://api.github.com/users/francisbesset","html_url":"https://github.com/francisbesset","followers_url":"https://api.github.com/users/francisbesset/followers","following_url":"https://api.github.com/users/francisbesset/following{/other_user}","gists_url":"https://api.github.com/users/francisbesset/gists{/gist_id}","starred_url":"https://api.github.com/users/francisbesset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francisbesset/subscriptions","organizations_url":"https://api.github.com/users/francisbesset/orgs","repos_url":"https://api.github.com/users/francisbesset/repos","events_url":"https://api.github.com/users/francisbesset/events{/privacy}","received_events_url":"https://api.github.com/users/francisbesset/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T20:25:34Z","updated_at":"2016-05-26T20:25:34Z","body":"The base of problem is the TypeHinting:\r\n```php\r\nfunction dump_date(DateTime $date) {\r\n  var_dump($date);\r\n}\r\ndump_date(new DateTime());\r\n```\r\n\r\nBut this issue can be closed because TimecopDateTime is an instance of DateTime from v1.1.0.\r\n```php\r\nvar_dump(new TimecopDateTime instanceof DateTime);\r\nvar_dump(new TimecopDateTime instanceof DateTimeInterface);\r\n```"}}
{"actor":{"display_login":"francisbesset"}}