From cddadb4b17a02b95be54acc05f7b37aebb61b978 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Thu, 30 Nov 2017 07:48:47 -0500 Subject: [PATCH] Object error Uncaught Error: Using $this when not in object context --- src/Object/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Object/Photo.php b/src/Object/Photo.php index d0f6776618..5d8ad6b3a7 100644 --- a/src/Object/Photo.php +++ b/src/Object/Photo.php @@ -839,7 +839,7 @@ class Photo return false; } - $type = $this->guessImageType($photo, true); + $type = self::guessImageType($photo, true); $img = new Photo($img_str, $type); if ($img->isValid()) { $img->scaleImageSquare(175); -- 2.39.2