Skip to content

Commit

Permalink
Fix for HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Nov 16, 2016
1 parent d01ac97 commit a964367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Monolog/Handler/CsvHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ protected function streamWrite($resource, array $record)
}
}
}
$formated = (array) $record['formatted'];
if (version_compare(PHP_VERSION, '5.5.4', '>=')) {
$formated = (array)$record['formatted'];
if (version_compare(PHP_VERSION, '5.5.4', '>=') && !defined('HHVM_VERSION')) {
return fputcsv($resource, $formated, static::DELIMITER, static::ENCLOSURE, static::ESCAPE_CHAR);
}
return fputcsv($resource, $formated, static::DELIMITER, static::ENCLOSURE);
Expand Down

0 comments on commit a964367

Please sign in to comment.