Skip to content

Commit

Permalink
Minor Signature Incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed Sep 18, 2023
1 parent 82ec8e2 commit 19d1f79
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 @@ -61,10 +61,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 19d1f79

Please sign in to comment.