From b118c776991e2f259bb2bb313bf6de14b8cf23fa Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Tue, 14 Nov 2017 22:36:07 -0800 Subject: [PATCH] Correct some docblocks --- src/Index/Index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Index/Index.php b/src/Index/Index.php index a2927bd..203b881 100644 --- a/src/Index/Index.php +++ b/src/Index/Index.php @@ -301,12 +301,12 @@ class Index implements ReadableIndex, \Serializable /** * Splits the given FQN into an array, eg : - * 'Psr\Log\LoggerInterface->log' will be ['Psr', '\Log', '\LoggerInterface', '->log()'] - * '\Exception->getMessage()' will be ['\Exception', '->getMessage()'] - * 'PHP_VERSION' will be ['PHP_VERSION'] + * - `'Psr\Log\LoggerInterface->log'` will be `['Psr', '\Log', '\LoggerInterface', '->log()']` + * - `'\Exception->getMessage()'` will be `['\Exception', '->getMessage()']` + * - `'PHP_VERSION'` will be `['PHP_VERSION']` * * @param string $fqn - * @return array + * @return string[] */ private function splitFqn(string $fqn): array { @@ -360,7 +360,7 @@ class Index implements ReadableIndex, \Serializable * It can be an index node or a Definition if the $parts are precise * enough. Returns null when nothing is found. * - * @param array $parts The splitted FQN + * @param string[] $parts The splitted FQN * @param array &$storage The array in which to store the $definition * @return array|Definition|null */ @@ -386,7 +386,7 @@ class Index implements ReadableIndex, \Serializable * array represented as a tree matching the given $parts. * * @param int $level The current level of FQN part - * @param array $parts The splitted FQN + * @param string[] $parts The splitted FQN * @param array &$storage The array in which to store the $definition * @param Definition $definition The Definition to store */ @@ -415,7 +415,7 @@ class Index implements ReadableIndex, \Serializable * in the index. * * @param int $level The current level of FQN part - * @param array $parts The splitted FQN + * @param string[] $parts The splitted FQN * @param array &$storage The current array in which to remove data * @param array &$rootStorage The root storage array */