justbetter / magento2-sentry

Magento 2 module to log to Sentry
MIT License
165 stars 70 forks source link

Use isset to check for custom_tags in context #71

Closed matthiashamacher closed 3 years ago

matthiashamacher commented 3 years ago

Summary In #68 it was reported that under specific circumstances, if the context is an array, the newly added functionality for adding custom tags will cause an error.

Result Changing the current check from array_key_exists to isset and additionally check for empty custom_tags as isset only fails if the key returns null.

indykoning commented 3 years ago

Thank you for your fix 🎉 I will create a release right away with number 2.5.1