Skip to content

Commit b118c77

Browse files
committed
Correct some docblocks
1 parent 7437d30 commit b118c77

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Index/Index.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,12 @@ private function yieldDefinitionsRecursively(array &$storage, string $prefix = '
301301

302302
/**
303303
* Splits the given FQN into an array, eg :
304-
* 'Psr\Log\LoggerInterface->log' will be ['Psr', '\Log', '\LoggerInterface', '->log()']
305-
* '\Exception->getMessage()' will be ['\Exception', '->getMessage()']
306-
* 'PHP_VERSION' will be ['PHP_VERSION']
304+
* - `'Psr\Log\LoggerInterface->log'` will be `['Psr', '\Log', '\LoggerInterface', '->log()']`
305+
* - `'\Exception->getMessage()'` will be `['\Exception', '->getMessage()']`
306+
* - `'PHP_VERSION'` will be `['PHP_VERSION']`
307307
*
308308
* @param string $fqn
309-
* @return array
309+
* @return string[]
310310
*/
311311
private function splitFqn(string $fqn): array
312312
{
@@ -360,7 +360,7 @@ private function splitFqn(string $fqn): array
360360
* It can be an index node or a Definition if the $parts are precise
361361
* enough. Returns null when nothing is found.
362362
*
363-
* @param array $parts The splitted FQN
363+
* @param string[] $parts The splitted FQN
364364
* @param array &$storage The array in which to store the $definition
365365
* @return array|Definition|null
366366
*/
@@ -386,7 +386,7 @@ private function getIndexValue(array $parts, array &$storage)
386386
* array represented as a tree matching the given $parts.
387387
*
388388
* @param int $level The current level of FQN part
389-
* @param array $parts The splitted FQN
389+
* @param string[] $parts The splitted FQN
390390
* @param array &$storage The array in which to store the $definition
391391
* @param Definition $definition The Definition to store
392392
*/
@@ -415,7 +415,7 @@ private function indexDefinition(int $level, array $parts, array &$storage, Defi
415415
* in the index.
416416
*
417417
* @param int $level The current level of FQN part
418-
* @param array $parts The splitted FQN
418+
* @param string[] $parts The splitted FQN
419419
* @param array &$storage The current array in which to remove data
420420
* @param array &$rootStorage The root storage array
421421
*/

0 commit comments

Comments
 (0)