Skip to content

Commit

Permalink
Minor Signature Incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman authored and Progi1984 committed Nov 8, 2023
1 parent 21f71c9 commit b4c1800
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/PhpWord/Writer/ODText.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ public function __construct(?PhpWord $phpWord = null)

/**
* Save PhpWord to file.
*
* @param string $filename
*/
public function save($filename = null): void
public function save(string $filename): void
{
$filename = $this->getTempFile($filename);
$zip = $this->getZipArchive($filename);
Expand Down
4 changes: 1 addition & 3 deletions src/PhpWord/Writer/RTF.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ public function __construct(?PhpWord $phpWord = null)

/**
* Save content to file.
*
* @param string $filename
*/
public function save($filename = null): void
public function save(string $filename): void
{
$this->writeFile($this->openFile($filename), $this->getContent());
}
Expand Down
4 changes: 1 addition & 3 deletions src/PhpWord/Writer/Word2007.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,8 @@ public function __construct(?PhpWord $phpWord = null)

/**
* Save document by name.
*
* @param string $filename
*/
public function save($filename = null): void
public function save(string $filename): void
{
$filename = $this->getTempFile($filename);
$zip = $this->getZipArchive($filename);
Expand Down

0 comments on commit b4c1800

Please sign in to comment.