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
AbstractSurrogateFragmentRenderer::containsNonScalars checks if URI attributes passed to ESI fragment renderer contain objects and if so, throws a deprecation notice. As I understand, arrays with scalar values should also be accepted, however, the method fails with arrays that contain pure scalar values.
It seems to me that the first if condition in the method should be:
if (is_array($value)) {
return $this->containsNonScalars($value);
}
rather than:
if (is_array($value) && $this->containsNonScalars($value)) {
return true;
}