{"action":"created","issue":{"url":"https://api.github.com/repos/Level-2/Transphporm/issues/187","repository_url":"https://api.github.com/repos/Level-2/Transphporm","labels_url":"https://api.github.com/repos/Level-2/Transphporm/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/Level-2/Transphporm/issues/187/comments","events_url":"https://api.github.com/repos/Level-2/Transphporm/issues/187/events","html_url":"https://github.com/Level-2/Transphporm/issues/187","id":304830713,"number":187,"title":"Notice: Array to string conversion in vendor/Transphporm/Template.php on line 69","user":{"login":"mmiraglia","id":7737900,"avatar_url":"https://avatars2.githubusercontent.com/u/7737900?v=4","gravatar_id":"","url":"https://api.github.com/users/mmiraglia","html_url":"https://github.com/mmiraglia","followers_url":"https://api.github.com/users/mmiraglia/followers","following_url":"https://api.github.com/users/mmiraglia/following{/other_user}","gists_url":"https://api.github.com/users/mmiraglia/gists{/gist_id}","starred_url":"https://api.github.com/users/mmiraglia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmiraglia/subscriptions","organizations_url":"https://api.github.com/users/mmiraglia/orgs","repos_url":"https://api.github.com/users/mmiraglia/repos","events_url":"https://api.github.com/users/mmiraglia/events{/privacy}","received_events_url":"https://api.github.com/users/mmiraglia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-13T16:07:43Z","updated_at":"2018-03-13T16:30:49Z","closed_at":null,"author_association":"NONE","body":"Hi! It's me again with \"combo issues\" :)\r\nI use the same form to create and edit entities. For example, this code works fine to edit an user:\r\n```\r\n        \t$xml = '<span /><input type=\"text\" name=\"username\" /><select name=\"role\"><option value=\"Teacher\">Teacher</option><option value=\"Admin\">Admin</option></select>';\r\n\r\n\t\t$tss = 'span {content: data(day); }; input[name=\"username\"]:attr(value) {content: data(user.username);}; select[name=\"role\"] option[value=data(user.role)]:attr(selected) { content: \"selected\"; }';\r\n\r\n\t\t$data = new \\stdClass();\r\n\t\t$data->day = date('l');\r\n\t\t$user = new \\stdClass();\r\n\t\t$user->username = \"Mr. Teacher\";\r\n\t\t$user->role = \"Teacher\";\r\n\t\t$data->user = $user;\r\n\r\n\t\t$tpl = new Transphporm\\Builder($xml, $tss);\r\n\r\n\t\techo $tpl->output($data)->body;\r\n```\r\nHowever, when I try to create an user the \"Notice\" above is raised:\r\n```\r\n        \t$xml = '<span /><input type=\"text\" name=\"username\" /><select name=\"role\"><option value=\"Teacher\">Teacher</option><option value=\"Admin\">Admin</option></select>';\r\n\r\n\t\t$tss = 'span {content: data(day); }; input[name=\"username\"]:attr(value) {content: data(user.username);}; select[name=\"role\"] option[value=data(user.role)]:attr(selected) { content: \"selected\"; }';\r\n\r\n\t\t$data = new \\stdClass();\r\n\t\t$data->day = date('l');\r\n\t\t$user = new \\stdClass();\r\n\t\t$data->user = $user;\r\n\r\n\t\t$tpl = new Transphporm\\Builder($xml, $tss);\r\n\r\n\t\techo $tpl->output($data)->body;\r\n```\r\nIt's that correct?\r\nThx!"},"comment":{"url":"https://api.github.com/repos/Level-2/Transphporm/issues/comments/372729615","html_url":"https://github.com/Level-2/Transphporm/issues/187#issuecomment-372729615","issue_url":"https://api.github.com/repos/Level-2/Transphporm/issues/187","id":372729615,"user":{"login":"TomBZombie","id":2454540,"avatar_url":"https://avatars0.githubusercontent.com/u/2454540?v=4","gravatar_id":"","url":"https://api.github.com/users/TomBZombie","html_url":"https://github.com/TomBZombie","followers_url":"https://api.github.com/users/TomBZombie/followers","following_url":"https://api.github.com/users/TomBZombie/following{/other_user}","gists_url":"https://api.github.com/users/TomBZombie/gists{/gist_id}","starred_url":"https://api.github.com/users/TomBZombie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomBZombie/subscriptions","organizations_url":"https://api.github.com/users/TomBZombie/orgs","repos_url":"https://api.github.com/users/TomBZombie/repos","events_url":"https://api.github.com/users/TomBZombie/events{/privacy}","received_events_url":"https://api.github.com/users/TomBZombie/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T16:30:49Z","updated_at":"2018-03-13T16:30:49Z","author_association":"OWNER","body":"I can see the problem, it's not actually on the line specified due to `DomXPath::registerPhpFunctions` apparently it doesn't forward the error message correctly. Anyway, I've fixed the issue in the latest commit."}}
{"actor":{"display_login":"TomBZombie"}}