Skip to content

Commit cbbdee7

Browse files
authored
PHP_EOL in proper spot.
Moved PHP_EOL to file_put_contents so it is not serialized
1 parent fec58c2 commit cbbdee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pub/errors/processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ protected function _setReportData($reportData)
480480
*/
481481
public function saveReport($reportData)
482482
{
483-
$this->reportData = $reportData . PHP_EOL;
483+
$this->reportData = $reportData;
484484
$this->reportId = abs((int)(microtime(true) * random_int(100, 1000)));
485485
$this->_reportFile = $this->_reportDir . '/' . $this->reportId;
486486
$this->_setReportData($reportData);
@@ -489,7 +489,7 @@ public function saveReport($reportData)
489489
@mkdir($this->_reportDir, 0777, true);
490490
}
491491

492-
@file_put_contents($this->_reportFile, $this->serializer->serialize($reportData));
492+
@file_put_contents($this->_reportFile, $this->serializer->serialize($reportData). PHP_EOL);
493493

494494
if (isset($reportData['skin']) && self::DEFAULT_SKIN != $reportData['skin']) {
495495
$this->_setSkin($reportData['skin']);

0 commit comments

Comments
 (0)