Merge pull request #2959 from VincentLanglet/writerSave

Add throws tag to Writer::save method
This commit is contained in:
Mark Baker 2022-09-21 14:07:27 +02:00 committed by GitHub
commit 813c2c7c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ $config
'function_declaration' => true,
'function_to_constant' => true,
'function_typehint_space' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['access', 'category', 'copyright', 'throws']],
'general_phpdoc_annotation_remove' => ['annotations' => ['access', 'category', 'copyright']],
'global_namespace_import' => true,
'header_comment' => false, // We don't use common header in all our files
'heredoc_indentation' => false, // Requires PHP >= 7.3

View File

@ -62,6 +62,8 @@ interface IWriter
* Save PhpSpreadsheet to file.
*
* @param resource|string $filename Name of the file to save
*
* @throws Exception
*/
public function save($filename, int $flags = 0): void;