Skip to content

Commit

Permalink
Updated code to resolve PHP compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshganjalagunte committed Sep 7, 2023
1 parent b765928 commit f70c1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ protected function writeCsvRecord($productRecord)

$output = [];
foreach ($row as $field) {
$output[] = preg_match("/(?:${delimiter_esc}|${enclosure_esc}|\s)/", $field) ? (
$output[] = preg_match("/(?:{$delimiter_esc}|{$enclosure_esc}|\s)/", $field) ? (
$enclosure . str_replace($enclosure, $enclosure . $enclosure, $field) . $enclosure
) : $field;
}
Expand Down

0 comments on commit f70c1cc

Please sign in to comment.