Skip to content

Conversation

keradus
Copy link
Member

@keradus keradus commented Aug 11, 2025

extracted from #8242

@keradus keradus enabled auto-merge (squash) August 13, 2025 16:51
@coveralls
Copy link

coveralls commented Aug 13, 2025

Coverage Status

coverage: 94.74%. remained the same
when pulling d0b3ac2 on keradus:_type
into 440600a on PHP-CS-Fixer:master.

This reverts commit 2452f84.
@keradus keradus merged commit 657dc28 into PHP-CS-Fixer:master Aug 15, 2025
31 checks passed
@keradus keradus deleted the _type branch August 15, 2025 21:45
@@ -220,7 +222,7 @@ private function moveMethodElement(array $elements, string $nameKeep, string $na

/**
* @return list<array{
* array{int, string},
* _PhpTokenArray,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a token array, it is a tuple of an index and a name.

@@ -256,7 +258,7 @@ private function getDataProvidersWithUsagePairs(Tokens $tokens, int $startIndex,

/**
* @param list<array{
* array{int, string},
* _PhpTokenArray,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here the same

@@ -98,7 +101,7 @@ public function testGetContent(int $index, string $content): void
}

/**
* @return iterable<int, array{int, string}>
* @return iterable<int, _PhpTokenArray>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a token array

@@ -161,7 +164,7 @@ public function testGetTag(int $index, string $tag): void
}

/**
* @return iterable<int, array{int, string}>
* @return iterable<int, _PhpTokenArray>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a token array

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gharlan , feel free to simply send a PR, if possible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do so tomorrow

@@ -140,7 +143,7 @@ public function testStartOrEndPos(int $pos, string $content): void
}

/**
* @return iterable<int, array{int, string}>
* @return iterable<int, _PhpTokenArray>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a token array

@@ -1171,7 +1174,7 @@ private static function makeLongArrayShapeType(): string
/**
* Return type is recursive.
*
* @return list<array{int, string}|list<mixed>>
* @return list<_PhpTokenArray|list<mixed>>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a token array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants