Skip to content

Commit a964367

Browse files
committed
Fix for HHVM
1 parent d01ac97 commit a964367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Monolog/Handler/CsvHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ protected function streamWrite($resource, array $record)
3939
}
4040
}
4141
}
42-
$formated = (array) $record['formatted'];
43-
if (version_compare(PHP_VERSION, '5.5.4', '>=')) {
42+
$formated = (array)$record['formatted'];
43+
if (version_compare(PHP_VERSION, '5.5.4', '>=') && !defined('HHVM_VERSION')) {
4444
return fputcsv($resource, $formated, static::DELIMITER, static::ENCLOSURE, static::ESCAPE_CHAR);
4545
}
4646
return fputcsv($resource, $formated, static::DELIMITER, static::ENCLOSURE);

0 commit comments

Comments
 (0)