We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043a0f5 commit ab7045dCopy full SHA for ab7045d
lib/action/sfAction.class.php
@@ -269,15 +269,15 @@ public function renderText($text)
269
}
270
271
/**
272
- * Convert the given array of data into a JSON response.
+ * Convert the given data into a JSON response.
273
*
274
* <code>return $this->renderJson(array('username' => 'john'))</code>
275
276
- * @param array $data Data to encode as JSON
+ * @param mixed $data Data to encode as JSON
277
278
* @return sfView::NONE
279
*/
280
- public function renderJson(array $data)
+ public function renderJson($data)
281
{
282
$this->getResponse()->setContentType('application/json');
283
$this->getResponse()->setContent(json_encode($data));
0 commit comments