Skip to content

Commit 3823396

Browse files
committed
Announcement parser now uses varcache
1 parent ca88498 commit 3823396

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/util.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env php
22
<?php
3+
4+
use phpweb\Build\VarCache;
5+
36
PHP_SAPI == 'cli' or die("Please run this script using the cli sapi");
47

58
/**
@@ -25,7 +28,7 @@ public static function writeChangeMetaToBranch(string $branch, array $data): voi
2528
/* the data may have releases from something _other_ than the latest branch */
2629
$data = array_filter($data, fn(string $key) => str_starts_with($key, $branch . '.'), ARRAY_FILTER_USE_KEY);
2730

28-
file_put_contents($saveDir . '/changelist.inc', '<?php return ' . var_export($data, true) . ';');
31+
VarCache::WriteVar('releases/' . $branch . '/changelog', $data);
2932
}
3033

3134
/**

0 commit comments

Comments
 (0)