Skip to content

Commit e2803f1

Browse files
committed
unserialize the attributes
1 parent 52e7d05 commit e2803f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GpsMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static function jsonUnserialize(string $json): self
167167
throw new \InvalidArgumentException(sprintf('The malformed json given. Error %s and message %s', json_last_error(), json_last_error_msg()));
168168
}
169169

170-
return new self($data['body'] ?? $json, $data['properties'] ?? [], $data['headers'] ?? []);
170+
return new self($data['body'] ?? $json, $data['properties'] ?? [], $data['headers'] ?? [], $data['attributes'] ?? []);
171171
}
172172

173173
public function getNativeMessage(): ?GoogleMessage

0 commit comments

Comments
 (0)