Skip to content

Commit b4c1800

Browse files
oleibmanProgi1984
authored andcommitted
Minor Signature Incompatibilities
1 parent 21f71c9 commit b4c1800

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/PhpWord/Writer/ODText.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ public function __construct(?PhpWord $phpWord = null)
7070

7171
/**
7272
* Save PhpWord to file.
73-
*
74-
* @param string $filename
7573
*/
76-
public function save($filename = null): void
74+
public function save(string $filename): void
7775
{
7876
$filename = $this->getTempFile($filename);
7977
$zip = $this->getZipArchive($filename);

src/PhpWord/Writer/RTF.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ public function __construct(?PhpWord $phpWord = null)
5656

5757
/**
5858
* Save content to file.
59-
*
60-
* @param string $filename
6159
*/
62-
public function save($filename = null): void
60+
public function save(string $filename): void
6361
{
6462
$this->writeFile($this->openFile($filename), $this->getContent());
6563
}

src/PhpWord/Writer/Word2007.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ public function __construct(?PhpWord $phpWord = null)
9191

9292
/**
9393
* Save document by name.
94-
*
95-
* @param string $filename
9694
*/
97-
public function save($filename = null): void
95+
public function save(string $filename): void
9896
{
9997
$filename = $this->getTempFile($filename);
10098
$zip = $this->getZipArchive($filename);

0 commit comments

Comments
 (0)