You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AbstractSurrogateFragmentRenderer throws an exception if non-scalar values are passed as attributes, but the detection has an early returns in case an attribute's $value is an array:
Symfony version(s) affected
4.4 - current
Description
The
AbstractSurrogateFragmentRenderer
throws an exception if non-scalar values are passed as attributes, but the detection has an early returns in case an attribute's$value
is an array:symfony/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php
Lines 96 to 107 in f0ffa47
How to reproduce
Pass on attributes in the form
[[], <non-scalar>]
,containsNonScalars
will returnfalse
instead oftrue
.Possible Solution
Something like this:
Additional Context
No response
The text was updated successfully, but these errors were encountered: