forss-it / laravel-gdpr-compliance

GDPR compliant data handling with ease
54 stars 5 forks source link

Updated Anonymizable trait #63

Closed pjrola closed 5 years ago

pjrola commented 5 years ago

Added check to make sure item value is not null before calling anonymize. This will prevent null fields in relations from causing exceptions.

Fixes exception Call to a member function anonymize() on null

KristofferTennivaara commented 5 years ago

Looks good, thank you for that finding @pjrola, I will merge your PR.