{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/instantiator/issues/39","repository_url":"https://api.github.com/repos/doctrine/instantiator","labels_url":"https://api.github.com/repos/doctrine/instantiator/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/instantiator/issues/39/comments","events_url":"https://api.github.com/repos/doctrine/instantiator/issues/39/events","html_url":"https://github.com/doctrine/instantiator/issues/39","id":265563913,"number":39,"title":"Can't instantiate final class extending ArrayIterator","user":{"login":"ciaranmcnulty","id":237866,"avatar_url":"https://avatars0.githubusercontent.com/u/237866?v=4","gravatar_id":"","url":"https://api.github.com/users/ciaranmcnulty","html_url":"https://github.com/ciaranmcnulty","followers_url":"https://api.github.com/users/ciaranmcnulty/followers","following_url":"https://api.github.com/users/ciaranmcnulty/following{/other_user}","gists_url":"https://api.github.com/users/ciaranmcnulty/gists{/gist_id}","starred_url":"https://api.github.com/users/ciaranmcnulty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciaranmcnulty/subscriptions","organizations_url":"https://api.github.com/users/ciaranmcnulty/orgs","repos_url":"https://api.github.com/users/ciaranmcnulty/repos","events_url":"https://api.github.com/users/ciaranmcnulty/events{/privacy}","received_events_url":"https://api.github.com/users/ciaranmcnulty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-15T11:07:08Z","updated_at":"2017-10-15T11:18:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```\r\nfinal class Foo extends ArrayIterator\r\n{\r\n}\r\n\r\n(new \\Doctrine\\Instantiator\\Instantiator()->instantiate(Foo::class);\r\n```\r\n\r\n```\r\nPHP Fatal error:  Uncaught Exception: unserialize(): Error at offset 13 of 14 bytes in /Users/cmcnulty/Documents/Code/phpspec/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php:76\r\n```\r\n\r\nReproduced on 1.0.5 and 1.1.0 and, not had a chance to debug. Was reported to PhpSpec as https://github.com/phpspec/phpspec/issues/1124"},"comment":{"url":"https://api.github.com/repos/doctrine/instantiator/issues/comments/336704696","html_url":"https://github.com/doctrine/instantiator/issues/39#issuecomment-336704696","issue_url":"https://api.github.com/repos/doctrine/instantiator/issues/39","id":336704696,"user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars2.githubusercontent.com/u/154256?v=4","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"created_at":"2017-10-15T11:18:43Z","updated_at":"2017-10-15T11:18:43Z","author_association":"OWNER","body":"Is the class being final a required factor?\n\nOn 15 Oct 2017 13:07, \"Ciaran McNulty\" <notifications@github.com> wrote:\n\n> final class Foo extends ArrayIterator\n> {\n> }\n>\n> return (new \\Doctrine\\Instantiator\\Instantiator())->instantiate(Foo::class);\n>\n> PHP Fatal error:  Uncaught Exception: unserialize(): Error at offset 13 of 14 bytes in /Users/cmcnulty/Documents/Code/phpspec/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php:76\n>\n> Reproduced on 1.0.5 and 1.1.0 and, not had a chance to debug. Was reported\n> to PhpSpec as phpspec/phpspec#1124\n> <https://github.com/phpspec/phpspec/issues/1124>\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/doctrine/instantiator/issues/39>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAJakE774PThopb7rIeL4MKZ-Y_s5Exuks5ssedcgaJpZM4P5tar>\n> .\n>\n"}}
{"actor":{"display_login":"Ocramius"}}