From dcd3b1689f55d2db74a59c3b0fe3ee1e962deabf Mon Sep 17 00:00:00 2001 From: Marcelo Andrade R Date: Tue, 27 Feb 2018 07:59:24 -0500 Subject: [PATCH] Fix PHP 7.2 compatibility issue #188 --- src/Attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Attachment.php b/src/Attachment.php index c2c29ab..364609c 100644 --- a/src/Attachment.php +++ b/src/Attachment.php @@ -386,7 +386,7 @@ public function originalFilename() */ public function getInstanceClass() { - return get_class($this->instance); + return is_null($this->instance) ? get_class() : get_class($this->instance); } /**