Skip to content

Commit e2fae17

Browse files
committed
unserialize the attributes
1 parent 9aed455 commit e2fae17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gps/GpsMessage.php

+1-1
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)