We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8553f18 commit 4f2a8ecCopy full SHA for 4f2a8ec
patch.php
@@ -23,6 +23,7 @@ function patchDir(string $base, string $dir): int
23
}
24
$patched = $original = file_get_contents($filename);
25
$patched = preg_replace('/\):\s*(\?[a-zA-Z]+|void)\s*\n/', ") /*:$1*/\n", $patched);
26
+ $patched = preg_replace('/([\(,])\s*(\?[a-zA-Z]+|void)\s+\$/', "$1 /*$2*/ \$", $patched);
27
$patched = preg_replace('/(private|public|protected) const/', "/*$1*/ const", $patched);
28
if ($patched && $patched != $original) {
29
file_put_contents($filename, $patched);
0 commit comments