Skip to content

Commit ab7045d

Browse files
committed
Change parameter of sfAction::renderJson
1 parent 043a0f5 commit ab7045d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/action/sfAction.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ public function renderText($text)
269269
}
270270

271271
/**
272-
* Convert the given array of data into a JSON response.
272+
* Convert the given data into a JSON response.
273273
*
274274
* <code>return $this->renderJson(array('username' => 'john'))</code>
275275
*
276-
* @param array $data Data to encode as JSON
276+
* @param mixed $data Data to encode as JSON
277277
*
278278
* @return sfView::NONE
279279
*/
280-
public function renderJson(array $data)
280+
public function renderJson($data)
281281
{
282282
$this->getResponse()->setContentType('application/json');
283283
$this->getResponse()->setContent(json_encode($data));

0 commit comments

Comments
 (0)