Avoid phpstan error

This commit is contained in:
ldestailleur 2025-09-04 14:08:11 +02:00
parent 05f3111134
commit 25e761bfa5

View file

@ -192,7 +192,7 @@ if (GETPOSTINT('clearlist') && $permissiontocreate) {
*/
}
if (GETPOSTINT('exportcsv') && $permissiontoread) {
if (GETPOSTINT('exportcsv') && $permissiontoread) { // @phpstan-ignore-line
$completefilename = 'targets_emailing'.$object->id.'_'.dol_print_date(dol_now(), 'dayhourlog').'.csv';
header('Content-Type: text/csv');
header('Content-Disposition: attachment;filename='.$completefilename);