Skip to content

Commit

Permalink
Cast root to object
Browse files Browse the repository at this point in the history
  • Loading branch information
erayd committed Apr 5, 2017
1 parent 2553ebd commit 9119798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchema/Constraints/BaseConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ public static function arrayToObjectRecursive($array)
throw new InvalidArgumentException($message);
}

return json_decode($json);
return (object) json_decode($json);
}
}

0 comments on commit 9119798

Please sign in to comment.