{"action":"created","issue":{"url":"https://api.github.com/repos/memio/spec-gen/issues/10","repository_url":"https://api.github.com/repos/memio/spec-gen","labels_url":"https://api.github.com/repos/memio/spec-gen/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/memio/spec-gen/issues/10/comments","events_url":"https://api.github.com/repos/memio/spec-gen/issues/10/events","html_url":"https://github.com/memio/spec-gen/issues/10","id":328251827,"node_id":"MDU6SXNzdWUzMjgyNTE4Mjc=","number":10,"title":"Create a constructor with a float","user":{"login":"ItsKelsBoys","id":39730006,"node_id":"MDQ6VXNlcjM5NzMwMDA2","avatar_url":"https://avatars1.githubusercontent.com/u/39730006?v=4","gravatar_id":"","url":"https://api.github.com/users/ItsKelsBoys","html_url":"https://github.com/ItsKelsBoys","followers_url":"https://api.github.com/users/ItsKelsBoys/followers","following_url":"https://api.github.com/users/ItsKelsBoys/following{/other_user}","gists_url":"https://api.github.com/users/ItsKelsBoys/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsKelsBoys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsKelsBoys/subscriptions","organizations_url":"https://api.github.com/users/ItsKelsBoys/orgs","repos_url":"https://api.github.com/users/ItsKelsBoys/repos","events_url":"https://api.github.com/users/ItsKelsBoys/events{/privacy}","received_events_url":"https://api.github.com/users/ItsKelsBoys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-31T18:39:43Z","updated_at":"2018-05-31T20:58:30Z","closed_at":null,"author_association":"NONE","body":"The following spec\r\n```php\r\nclass TestSpec extends ObjectBehavior\r\n{\r\n    function it_floats()\r\n    {\r\n        $aFloat = 3.44;\r\n        $this->beConstructedWith($aFloat);\r\n        $this->floatMe()->shouldReturn($aFloat);\r\n    }\r\n}\r\n```\r\ngenerates the following class: \r\n```php\r\nuse float;\r\n\r\nclass Test\r\n{\r\n    private $argument;\r\n\r\n    public function __construct(float $argument)\r\n    {\r\n        $this->argument = $argument;\r\n    }\r\n}\r\n```\r\nwhich generates the following error: \r\n`PHP Fatal error:  Cannot use float as float because 'float' is a special class name in /var/www/test/src/Test.php on line 5`"},"comment":{"url":"https://api.github.com/repos/memio/spec-gen/issues/comments/393677834","html_url":"https://github.com/memio/spec-gen/issues/10#issuecomment-393677834","issue_url":"https://api.github.com/repos/memio/spec-gen/issues/10","id":393677834,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzY3NzgzNA==","user":{"login":"ItsKelsBoys","id":39730006,"node_id":"MDQ6VXNlcjM5NzMwMDA2","avatar_url":"https://avatars1.githubusercontent.com/u/39730006?v=4","gravatar_id":"","url":"https://api.github.com/users/ItsKelsBoys","html_url":"https://github.com/ItsKelsBoys","followers_url":"https://api.github.com/users/ItsKelsBoys/followers","following_url":"https://api.github.com/users/ItsKelsBoys/following{/other_user}","gists_url":"https://api.github.com/users/ItsKelsBoys/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsKelsBoys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsKelsBoys/subscriptions","organizations_url":"https://api.github.com/users/ItsKelsBoys/orgs","repos_url":"https://api.github.com/users/ItsKelsBoys/repos","events_url":"https://api.github.com/users/ItsKelsBoys/events{/privacy}","received_events_url":"https://api.github.com/users/ItsKelsBoys/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T20:58:30Z","updated_at":"2018-05-31T20:58:30Z","author_association":"NONE","body":"Looks like phpunit is causing the php7.0 build to fail should we lower the phpunit version?"}}
{"actor":{"display_login":"ItsKelsBoys"}}