Skip to content

Instantly share code, notes, and snippets.

@nickygerritsen
Created January 26, 2022 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickygerritsen/c38c14fb0008715d86ba78b46cc9b887 to your computer and use it in GitHub Desktop.
Save nickygerritsen/c38c14fb0008715d86ba78b46cc9b887 to your computer and use it in GitHub Desktop.
codesleeve-stapler.patch
--- a/src/Attachment.php 2022-01-26 16:09:33.000000000 +0100
+++ b/src/Attachment.php 2022-01-26 16:10:05.000000000 +0100
@@ -385,7 +385,7 @@
*/
public function getInstanceClass()
{
- return get_class($this->instance);
+ return is_null($this->instance) ? null : get_class($this->instance);
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment