Skip to content

Commit

Permalink
Fix for HHVM stream_get_meta_data issue
Browse files Browse the repository at this point in the history
  • Loading branch information
martinssipenko committed Jul 25, 2014
1 parent bd4dd2c commit bd4d19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeSniffer/Reporting.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function cacheFileReport(PHP_CodeSniffer_File $phpcsFile, array $cliValue
if ($output === null) {
// Using a temp file.
if (isset($this->_tmpFiles[$report]) === false) {
$this->_tmpFiles[$report] = tmpfile();
$this->_tmpFiles[$report] = fopen(tempnam(sys_get_temp_dir(), 'phpcs'), 'w');
}

fwrite($this->_tmpFiles[$report], $generatedReport);
Expand Down

0 comments on commit bd4d19a

Please sign in to comment.