From 137c81444633906b3efd547cb87bb32f61e6f6ac Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 5 Jan 2024 12:55:13 +0000 Subject: [PATCH] Fix `Creation of dynamic property` warning in PHP 8.2 for SnappyImage (#518) --- src/IlluminateSnappyImage.php | 4 ++++ src/ImageWrapper.php | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/IlluminateSnappyImage.php b/src/IlluminateSnappyImage.php index 64f2c7e..2a3d2a7 100644 --- a/src/IlluminateSnappyImage.php +++ b/src/IlluminateSnappyImage.php @@ -4,6 +4,10 @@ use Illuminate\Filesystem\Filesystem; class IlluminateSnappyImage extends Image { + /** + * @var \Illuminate\Filesystem\Filesystem + */ + protected $fs; /** * @param \Illuminate\Filesystem\Filesystem diff --git a/src/ImageWrapper.php b/src/ImageWrapper.php index d714dd3..28fe0d7 100644 --- a/src/ImageWrapper.php +++ b/src/ImageWrapper.php @@ -23,6 +23,15 @@ class ImageWrapper { */ protected $options = array(); + /** + * @var string + */ + protected $html; + + /** + * @var string + */ + protected $file; /** * @param \Knp\Snappy\Image $snappy