Skip to content

Commit a491f1e

Browse files
author
Johnny Garcia
committed
Fixing the return type always return the true, when compare is a objet
1 parent b509bcc commit a491f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function afterAction($action, $result)
3535
// Si no es un strign no validamos nada
3636
if (!is_string($result)) return $result;
3737

38-
if ($data = json_decode($result) !== false) {
38+
if (($data = json_decode($result)) !== false) {
3939
if (is_object($data)) return $data;
4040
}
4141

0 commit comments

Comments
 (0)