suppress notice for tempnam (#2166)

This commit is contained in:
Kevin Papst
2020-12-09 10:01:50 +01:00
committed by GitHub
parent 53dc322fd1
commit fcd9974a7c
5 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ class XlsxRenderer extends AbstractSpreadsheetRenderer
*/
protected function saveSpreadsheet(Spreadsheet $spreadsheet): string
{
$filename = tempnam(sys_get_temp_dir(), 'kimai-export-xlsx');
$filename = @tempnam(sys_get_temp_dir(), 'kimai-export-xlsx');
if (false === $filename) {
throw new \Exception('Could not open temporary file');
}