{"action":"opened","issue":{"url":"https://api.github.com/repos/dompdf/dompdf/issues/1188","repository_url":"https://api.github.com/repos/dompdf/dompdf","labels_url":"https://api.github.com/repos/dompdf/dompdf/issues/1188/labels{/name}","comments_url":"https://api.github.com/repos/dompdf/dompdf/issues/1188/comments","events_url":"https://api.github.com/repos/dompdf/dompdf/issues/1188/events","html_url":"https://github.com/dompdf/dompdf/issues/1188","id":152981279,"number":1188,"title":"Passing options to the Dompdf constructor causes Catchable fatal error","user":{"login":"lordspace","id":137558,"avatar_url":"https://avatars.githubusercontent.com/u/137558?v=3","gravatar_id":"","url":"https://api.github.com/users/lordspace","html_url":"https://github.com/lordspace","followers_url":"https://api.github.com/users/lordspace/followers","following_url":"https://api.github.com/users/lordspace/following{/other_user}","gists_url":"https://api.github.com/users/lordspace/gists{/gist_id}","starred_url":"https://api.github.com/users/lordspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordspace/subscriptions","organizations_url":"https://api.github.com/users/lordspace/orgs","repos_url":"https://api.github.com/users/lordspace/repos","events_url":"https://api.github.com/users/lordspace/events{/privacy}","received_events_url":"https://api.github.com/users/lordspace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-04T10:38:02Z","updated_at":"2016-05-04T10:38:02Z","closed_at":null,"body":"\r\n```\r\n$options = new Options();\r\n$options->set('defaultFont', 'Courier');\r\n$dompdf = new Dompdf($options);\r\n\r\nCatchable fatal error: Argument 1 passed to Dompdf\\Options::__construct() must be of the type array, object given, called in C:\\Users\\User\\Desktop\\dompdf\\t2\\vendor\\dompdf\\dompdf\\src\\Dompdf.php on line 282 and defined in C:\\Users\\User\\Desktop\\dompdf\\t2\\vendor\\dompdf\\dompdf\\src\\Options.php on line 283\r\n```"}}