Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit ff66a82

Browse files
committed
JSON Encoder using associative arrays by default
1 parent eefde95 commit ff66a82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Nats/Encoders/JSONEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function encode($payload)
3434
*/
3535
public function decode($payload)
3636
{
37-
$payload = json_decode($payload);
37+
$payload = json_decode($payload, true);
3838
return $payload;
3939
}
4040
}

0 commit comments

Comments
 (0)