Skip to content

Commit b26cef0

Browse files
committed
wip
1 parent 75d28f4 commit b26cef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function patchDir(string $base, string $dir): int
3131
}
3232
$patched = $original = file_get_contents($filename);
3333
$patched = preg_replace('/\):\s*(\?[a-zA-Z]+|void)\s*\n/', ") /*:$1*/\n", $patched);
34-
$patched = preg_replace('/private const/', "/*private*/ const", $patched);
34+
$patched = preg_replace('/(private|public|protected) const/', "/*$1*/ const", $patched);
3535
if ($patched && $patched != $original) {
3636
file_put_contents($filename, $patched);
3737
$count++;

0 commit comments

Comments
 (0)