public function updateLicenseFile(?LicenseData $data): void
{
$writer = new AtomicWriter(self::LICENSE_FILE);
- $writer->write(\sprintf(
- <<<'EOT'
- <?php
- /* GENERATED AT %s -- DO NOT EDIT */
- return unserialize(%s);
- EOT,
- \gmdate('r', \TIME_NOW),
- \var_export(\serialize($data), true),
- ));
+ $writer->write("<?php /* {$data->creationDate->format('c')} */\n\n");
+ $writer->write(\sprintf("return unserialize(%s);\n", \var_export(\serialize($data), true)));
$writer->flush();
WCF::resetZendOpcache(self::LICENSE_FILE);