Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Clarify deprecation of non-scalar values in surrogate fragment renderer#19281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[HttpKernel] Clarify deprecation of non-scalar values in surrogate fragment renderer#19281
Uh oh!
There was an error while loading.Please reload this page.
Conversation
chalasr commentedJul 4, 2016
| Q | A |
|---|---|
| Branch? | 3.1 |
| Bug fix? | no |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | #19262 |
| License | MIT |
| Doc PR | ~ |
| if (!$this->surrogate || !$this->surrogate->hasSurrogateCapability($request)) { | ||
| if ($uriinstanceof ControllerReference &&$this->containsNonScalars($uri->attributes)) { | ||
| @trigger_error('Passing objects as part of URI attributes to the ESI and SSI rendering strategies is deprecated since version 3.1, and will be removed in 4.0. Use a different rendering strategy or pass scalar values.',E_USER_DEPRECATED); | ||
| @trigger_error('Passing objectsor arraysas part of URI attributes to the ESI and SSI rendering strategies is deprecated since version 3.1, and will be removed in 4.0. Use a different rendering strategy or pass scalar values.',E_USER_DEPRECATED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
What about "Passing non scalar values [...]" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I hesitated because it is already written "pass scalar values" at the end, but if you think it is clearer, let's use it.
xabbuh commentedJul 4, 2016
We should update the upgrade files too. |
729701b toe8ea461Comparechalasr commentedJul 4, 2016
I did the change. |
fabpot commentedJul 4, 2016
👍 |
xabbuh commentedJul 4, 2016
@chalasr The |
…ndererUpdate UPGRADE-3.1 tooUse non-scalar values as deperecated typeUpdate UPGRADE-4.0 too
e8ea461 tob088978Comparechalasr commentedJul 4, 2016
I missed it, it's ok now@xabbuh. |
xabbuh commentedJul 4, 2016
👍 |
fabpot commentedJul 4, 2016
Thank you@chalasr. |
… surrogate fragment renderer (chalasr)This PR was merged into the 3.1 branch.Discussion----------[HttpKernel] Clarify deprecation of non-scalar values in surrogate fragment renderer| Q | A| ------------- | ---| Branch? | 3.1| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#19262| License | MIT| Doc PR | ~Commits-------b088978 [HttpKernel] Clarify deprecation of non-scalar values in surrogate renderer
…ragment renderer (chalasr)This PR was merged into the 3.1 branch.Discussion----------[HttpKernel] Fix assertion of deprecation in surrogate fragment renderer| Q | A| ------------- | ---| Branch? | 3.1| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aThe message has been changed in#19281 but not the corresponding assertionCommits-------4245bac [HttpKernel] Fix assertion of deprecation in fragment renderer