{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/16283","labels_url":"https://api.github.com/repos/symfony/symfony/issues/16283/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/16283/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/16283/events","html_url":"https://github.com/symfony/symfony/pull/16283","id":112095035,"number":16283,"title":"[HttpKernel] Make the behaviour of surrogate renderers consistent in all environments","user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/HttpKernel","name":"HttpKernel","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T08:14:50Z","updated_at":"2015-10-21T09:11:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/16283","html_url":"https://github.com/symfony/symfony/pull/16283","diff_url":"https://github.com/symfony/symfony/pull/16283.diff","patch_url":"https://github.com/symfony/symfony/pull/16283.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #15056\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\nSurrogate renderers cannot work with objects (rule introduced in #8437). As renderers should be interchangable, we should not allow passing objects to the fallback renderer either."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/149829150","html_url":"https://github.com/symfony/symfony/pull/16283#issuecomment-149829150","issue_url":"https://api.github.com/repos/symfony/symfony/issues/16283","id":149829150,"user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T09:11:12Z","updated_at":"2015-10-21T09:11:12Z","body":"@stof if anyone relied on this behaviour he'd run into issues after deploying his app to production. Passing objects as renderer attributes might have worked on dev with the inline renderer, but it would fail in prod with a real reverse proxy present."}}