Skip to content

Commit 2aacd22

Browse files
committed
[Translation] Add missing return type
1 parent 4825733 commit 2aacd22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Translation/Util/ArrayConverter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ private static function cancelExpand(array &$tree, string $prefix, array $node)
9898
}
9999
}
100100

101-
private static function getKeyParts(string $key)
101+
/**
102+
* @return string[]
103+
*/
104+
private static function getKeyParts(string $key): array
102105
{
103106
$parts = explode('.', $key);
104107
$partsCount = \count($parts);

0 commit comments

Comments
 (0)