patrickkerrigan / php-xray

A PHP instrumentation library for AWS X-Ray
BSD 3-Clause "New" or "Revised" License
63 stars 26 forks source link

fix: default subsegments to an empty array #5

Closed willtj closed 4 years ago

willtj commented 4 years ago

$segment->jsonSerialize() returns subsegments as null if it's empty.

patrickkerrigan commented 4 years ago

Hi Will,

Thanks for the patch!

Are you happy for me to go ahead and merge this?

willtj commented 4 years ago

Hi! Sorry, totally missed your reply here - yes, I'm happy for you to merge.