Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65a2593

Browse filesBrowse files
committed
Fix non-scalar check in surrogate fragment renderer
1 parent e3e2b32 commit 65a2593
Copy full SHA for 65a2593

File tree

1 file changed

+5
-3
lines changed
Filter options

1 file changed

+5
-3
lines changed

‎src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ private function generateSignedFragmentUri(ControllerReference $uri, Request $re
9696
private function containsNonScalars(array $values): bool
9797
{
9898
foreach ($values as $value) {
99-
if (\is_array($value)) {
100-
return $this->containsNonScalars($value);
101-
} elseif (!\is_scalar($value) && null !== $value) {
99+
if (\is_array($value) && $this->containsNonScalars($value)) {
100+
return true;
101+
}
102+
103+
if (!\is_scalar($value) && null !== $value) {
102104
return true;
103105
}
104106
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.