Skip to content

Commit b40fe00

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing PHPdoc return types
1 parent f554b54 commit b40fe00

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Resources/bin/common.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ function bailout(string $message)
2424
exit(1);
2525
}
2626

27+
/**
28+
* @return string
29+
*/
2730
function strip_minor_versions(string $version)
2831
{
2932
preg_match('/^(?P<version>[0-9]\.[0-9]|[0-9]{2,})/', $version, $matches);
3033

3134
return $matches['version'];
3235
}
3336

37+
/**
38+
* @return string
39+
*/
3440
function centered(string $text)
3541
{
3642
$padding = (int) ((LINE_WIDTH - strlen($text)) / 2);
@@ -57,6 +63,9 @@ function run(string $command)
5763
}
5864
}
5965

66+
/**
67+
* @return string|null
68+
*/
6069
function get_icu_version_from_genrb(string $genrb)
6170
{
6271
exec($genrb.' --version - 2>&1', $output, $status);

0 commit comments

Comments
 (0)