try to avoid passing NULL to file_put_contents()
try to avoid passing NULL to file_put_contents()

passing IncomingMailAttachment::$filePath access through IncomingMailAttachment::__get() appears to ensure NULL does not get passed to file_put_contents();

barbushin/php-imap