Skip to content

Commit a2f7275

Browse files
committed
CS: docblock tag grouping
Apparently Doctrine wants the related `@psalm` annotations to be grouped with the `@param` or `@return` tags.
1 parent 92a0092 commit a2f7275

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/Types/Context.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ final class Context
5050
*
5151
* @param string $namespace The namespace where this DocBlock resides in.
5252
* @param string[] $namespaceAliases List of namespace aliases => Fully Qualified Namespace.
53-
*
5453
* @psalm-param array<string, string> $namespaceAliases
5554
*/
5655
public function __construct(string $namespace, array $namespaceAliases = [])
@@ -87,7 +86,6 @@ public function getNamespace(): string
8786
* the alias for the imported Namespace.
8887
*
8988
* @return string[]
90-
*
9189
* @psalm-return array<string, string>
9290
*/
9391
public function getNamespaceAliases(): array

src/Types/ContextFactory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ private function parseNamespace(ArrayIterator $tokens): string
247247
* @param ArrayIterator<int, string|array{0:int,1:string,2:int}> $tokens
248248
*
249249
* @return string[]
250-
*
251250
* @psalm-return array<string, string>
252251
*/
253252
private function parseUseStatement(ArrayIterator $tokens): array
@@ -299,10 +298,9 @@ private function skipToNextStringOrNamespaceSeparator(ArrayIterator $tokens): vo
299298
* @param ArrayIterator<int, string|array{0:int,1:string,2:int}> $tokens
300299
*
301300
* @return string[]
301+
* @psalm-return array<string, string>
302302
*
303303
* @psalm-suppress TypeDoesNotContainType
304-
*
305-
* @psalm-return array<string, string>
306304
*/
307305
private function extractUseStatements(ArrayIterator $tokens): array
308306
{

0 commit comments

Comments
 (0)