Skip to content

Commit 7b942bd

Browse files
committed
Replace CodeIgniter::CI_VERSION with dev version
1 parent 0d2482a commit 7b942bd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

admin/create-new-changelog.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ function replace_file_content(string $path, string $pattern, string $replace): v
4747
copy('./admin/next-changelog-patch.rst', $newChangelog);
4848
}
4949

50+
// Replace version in CodeIgniter.php to {version}-dev.
51+
replace_file_content(
52+
'./system/CodeIgniter.php',
53+
'/public const CI_VERSION = \'.*?\';/u',
54+
"public const CI_VERSION = '{$newVersion}-dev';",
55+
);
56+
5057
// Add changelog to index.rst.
5158
replace_file_content(
5259
$changelogIndex,

0 commit comments

Comments
 (0)