File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,8 @@ public function __construct(?PhpWord $phpWord = null)
70
70
71
71
/**
72
72
* Save PhpWord to file.
73
- *
74
- * @param string $filename
75
73
*/
76
- public function save ($ filename = null ): void
74
+ public function save (string $ filename ): void
77
75
{
78
76
$ filename = $ this ->getTempFile ($ filename );
79
77
$ zip = $ this ->getZipArchive ($ filename );
Original file line number Diff line number Diff line change @@ -56,10 +56,8 @@ public function __construct(?PhpWord $phpWord = null)
56
56
57
57
/**
58
58
* Save content to file.
59
- *
60
- * @param string $filename
61
59
*/
62
- public function save ($ filename = null ): void
60
+ public function save (string $ filename ): void
63
61
{
64
62
$ this ->writeFile ($ this ->openFile ($ filename ), $ this ->getContent ());
65
63
}
Original file line number Diff line number Diff line change @@ -91,10 +91,8 @@ public function __construct(?PhpWord $phpWord = null)
91
91
92
92
/**
93
93
* Save document by name.
94
- *
95
- * @param string $filename
96
94
*/
97
- public function save ($ filename = null ): void
95
+ public function save (string $ filename ): void
98
96
{
99
97
$ filename = $ this ->getTempFile ($ filename );
100
98
$ zip = $ this ->getZipArchive ($ filename );
You can’t perform that action at this time.
0 commit comments