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 df6b0b8

Browse filesBrowse files
committed
bug #9917 [HttpFoundation] fixed PHP warnings (fabpot)
This PR was merged into the 2.5-dev branch. Discussion ---------- [HttpFoundation] fixed PHP warnings Commits ------- cf71e22 [HttpFoundation] fixed PHP warnings
2 parents 410d399 + cf71e22 commit df6b0b8
Copy full SHA for df6b0b8

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpFoundation/JsonResponse.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/JsonResponse.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function setCallback($callback = null)
9191
public function setData($data = array())
9292
{
9393
// Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be embedded into HTML.
94-
$this->data = json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT);
94+
$this->data = @json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT);
9595

9696
if (JSON_ERROR_NONE !== json_last_error()) {
9797
throw new \InvalidArgumentException($this->transformJsonError());

0 commit comments

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