Skip to content

Commit

Permalink
Reverted string[] to lsit<string> modification
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgsowa committed Oct 4, 2024
1 parent 3ec8665 commit b6ff740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public function getNode(): \PhpParser\Node
}

/**
* @return list<string>
* @return string[]
*/
public function getAnnotationClassNames(): array
{
Expand All @@ -441,7 +441,7 @@ public function getAnnotationClassNames(): array
}

/**
* @return list<string>
* @return string[]
*/
public function getGenericTagClassNames(): array
{
Expand All @@ -463,7 +463,7 @@ public function getGenericTagClassNames(): array
}

/**
* @return list<string>
* @return string[]
*/
public function getConstFetchNodeClassNames(): array
{
Expand All @@ -490,7 +490,7 @@ public function getConstFetchNodeClassNames(): array
}

/**
* @return list<string>
* @return string[]
*/
public function getArrayItemNodeClassNames(): array
{
Expand Down
8 changes: 4 additions & 4 deletions src/PostRector/Rector/UnusedImportRemovingPostRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function enterNode(Node $node): ?Node
}

/**
* @return list<string>
* @return string[]
*/
private function findNonUseImportNames(Namespace_|FileWithoutNamespace $namespace): array
{
Expand Down Expand Up @@ -107,7 +107,7 @@ private function findNonUseImportNames(Namespace_|FileWithoutNamespace $namespac
}

/**
* @return list<string>
* @return string[]
*/
private function findNamesInDocBlocks(Namespace_|FileWithoutNamespace $namespace): array
{
Expand Down Expand Up @@ -151,7 +151,7 @@ private function findNamesInDocBlocks(Namespace_|FileWithoutNamespace $namespace
}

/**
* @return list<string>
* @return string[]
*/
private function resolveUsedPhpAndDocNames(Namespace_|FileWithoutNamespace $namespace): array
{
Expand All @@ -163,7 +163,7 @@ private function resolveUsedPhpAndDocNames(Namespace_|FileWithoutNamespace $name
}

/**
* @param list<string> $names
* @param string[] $names
*/
private function isUseImportUsed(UseUse $useUse, array $names, ?Name $namespaceName): bool
{
Expand Down

0 comments on commit b6ff740

Please sign in to comment.