Skip to content

Commit b040da6

Browse files
wouterjnicolas-grekas
authored andcommitted
Add PHP types to private methods and functions
1 parent 01e6198 commit b040da6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Process.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ private function escapeArgument(?string $argument): string
15671567
return'"'.str_replace(['"', '^', '%', '!', "\n"], ['""', '"^^"', '"^%"', '"^!"', '!LF!'], $argument).'"';
15681568
}
15691569

1570-
privatefunctionreplacePlaceholders(string$commandline, array$env)
1570+
privatefunctionreplacePlaceholders(string$commandline, array$env): string
15711571
{
15721572
returnpreg_replace_callback('/"\$\{:([_a-zA-Z]++[_a-zA-Z0-9]*+)\}"/', function ($matches) use ($commandline, $env) {
15731573
if (!isset($env[$matches[1]]) || false === $env[$matches[1]]) {

0 commit comments

Comments
 (0)