{"comment":{"url":"https://api.github.com/repos/Swahvay/xhp-lib/comments/10132155","html_url":"https://github.com/Swahvay/xhp-lib/commit/f6eeec2f3061450d95d437bac90a345a7cf9c837#commitcomment-10132155","id":10132155,"user":{"login":"Swahvay","id":974639,"avatar_url":"https://avatars.githubusercontent.com/u/974639?v=3","gravatar_id":"","url":"https://api.github.com/users/Swahvay","html_url":"https://github.com/Swahvay","followers_url":"https://api.github.com/users/Swahvay/followers","following_url":"https://api.github.com/users/Swahvay/following{/other_user}","gists_url":"https://api.github.com/users/Swahvay/gists{/gist_id}","starred_url":"https://api.github.com/users/Swahvay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swahvay/subscriptions","organizations_url":"https://api.github.com/users/Swahvay/orgs","repos_url":"https://api.github.com/users/Swahvay/repos","events_url":"https://api.github.com/users/Swahvay/events{/privacy}","received_events_url":"https://api.github.com/users/Swahvay/received_events","type":"User","site_admin":false},"position":59,"line":59,"path":"src/html/XHPHelpers.php","commit_id":"f6eeec2f3061450d95d437bac90a345a7cf9c837","created_at":"2015-03-10T23:40:07Z","updated_at":"2015-03-10T23:40:07Z","body":"Potentially they could be, but then you'd have to pass both the source and the target into the function. Plus, where would this function live? `:xhp`? I guess I just like the signature of it non-static better. Compare:\r\n\r\n```\r\n:xhp:copyAllAttributes($fromXHP, $toXHP);\r\n$fromXHP->copyAllAttributes($toXHP);\r\n```"}}