Skip to content

Commit 813c2c7

Browse files
authored
Merge pull request #2959 from VincentLanglet/writerSave
Add throws tag to Writer::save method
2 parents 53e0828 + e8a03fb commit 813c2c7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'function_declaration' => true,
5656
'function_to_constant' => true,
5757
'function_typehint_space' => true,
58-
'general_phpdoc_annotation_remove' => ['annotations' => ['access', 'category', 'copyright', 'throws']],
58+
'general_phpdoc_annotation_remove' => ['annotations' => ['access', 'category', 'copyright']],
5959
'global_namespace_import' => true,
6060
'header_comment' => false, // We don't use common header in all our files
6161
'heredoc_indentation' => false, // Requires PHP >= 7.3

src/PhpSpreadsheet/Writer/IWriter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public function setPreCalculateFormulas($precalculateFormulas);
6262
* Save PhpSpreadsheet to file.
6363
*
6464
* @param resource|string $filename Name of the file to save
65+
*
66+
* @throws Exception
6567
*/
6668
public function save($filename, int $flags = 0): void;
6769

0 commit comments

Comments
 (0)