Skip to content

Commit f616cf3

Browse files
Merge pull request #954 from Codeinwp/bugfix/949
Fix PHP Warning
2 parents 47d94e6 + c52e945 commit f616cf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/Visualizer/Module.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ private function _getCSV( $rows, $filename, $enclose ) {
269269
$filename .= '.csv';
270270

271271
$bom = chr( 0xEF ) . chr( 0xBB ) . chr( 0xBF );
272-
$fp = tmpfile();
272+
// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
273+
$fp = @tmpfile();
273274
if ( null === $fp ) {
274275
$fp = fopen( wp_tempnam(), 'w+' );
275276
}

0 commit comments

Comments
 (0)