Skip to content

Commit

Permalink
Correção na tipagem dos valores de resposta padrão.
Browse files Browse the repository at this point in the history
Signed-off-by: Bueno, Feliphe <feliphezion@gmail.com>
  • Loading branch information
feliphebueno committed Mar 7, 2017
1 parent c1fef10 commit 26061f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/ControllerAbstract.php
Expand Up @@ -41,7 +41,7 @@ public function jsonSuccess($message = '', $status = 200)
{
return $this->getTwig()->loader()->render('json_encode.twig', [
"data" => [
'success' => 'true',
'success' => true,
'status' => $status,
'message' => $message
]
Expand All @@ -52,7 +52,7 @@ public function jsonError($error, $status = 500)
{
return $this->getTwig()->loader()->render('json_encode.twig', [
"data" => [
'success' => 'false',
'success' => false,
'status' => $status,
'message' => $error
]
Expand Down

0 comments on commit 26061f8

Please sign in to comment.