title: Unexpected error occurring on PHP file regeneration MacOS only, not windows
body: <p>The regeneration of our file after deleting an item from our database causes the following error on Mac only:</p>
  <blockquote>
  <p>syntax error, unexpected ''import_price_rules' =&gt; 'Impor' (T_ENCAPSED_AND_WHITESPACE), expecting end of file</p>
  </blockquote>
  <p>The exact place of the error changes and is not specific to the actual error, for example depending on which translation file it occurs on it may be a different place within that file.</p>
  <p>We believe the error might be due to the following line:</p>
  <pre><code>File::put($translationFilePath, &quot;&lt;?php\n\nreturn &quot; . StringHelper::varExportFormat(var_export($translations, true)) . PHP_EOL);
  </code></pre>
  <p>We have narrowed it down to possibly being due to <code>var_export</code>.</p>
  <p>We thought it would be due to the line breaking but we are all on the same settings.</p>
  <p>Again this code works absolutely fine on Windows and the error only occurs on Mac.</p>