mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-04-28 11:38:40 +00:00
test fixes
This commit is contained in:
parent
5ca0edcd24
commit
917be6cdfd
|
|
@ -31,6 +31,9 @@ $word = new DefaultWord();
|
|||
$section = $word->createFirstPage();
|
||||
|
||||
$file = \tempnam(\sys_get_temp_dir(), 'oms_');
|
||||
if ($file === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
|
||||
$writer->save($file);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user