Skip to content

Commit 940eec2

Browse files
authored
Fix Creation of dynamic property warning in PHP 8.2 (#501)
* Fix `Creation of dynamic property` warning in PHP 8.2 * Update IlluminateSnappyPdf.php
1 parent 283d9c9 commit 940eec2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/IlluminateSnappyPdf.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
use Illuminate\Filesystem\Filesystem;
55

66
class IlluminateSnappyPdf extends Pdf {
7+
/**
8+
* @var \Illuminate\Filesystem\Filesystem
9+
*/
10+
protected $fs;
711

812
/**
913
* @param \Illuminate\Filesystem\Filesystem
@@ -101,4 +105,4 @@ protected function mkdir($pathname)
101105
return $this->fs->makeDirectory($pathname, 0777, true, true);
102106
}
103107

104-
}
108+
}

src/PdfWrapper.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ class PdfWrapper{
2323
* @var array
2424
*/
2525
protected $options = array();
26+
27+
/**
28+
* @var string
29+
*/
30+
protected $html;
2631

32+
/**
33+
* @var string
34+
*/
35+
protected $file;
2736

2837
/**
2938
* @param \Knp\Snappy\Pdf $snappy

0 commit comments

Comments
 (0)