Skip to content

Commit 578bbf6

Browse files
committed
Merge branch '2.12' into 2.14
2 parents 87569f1 + 669bf3a commit 578bbf6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Fixer/LanguageConstruct/NoUnsetOnPropertyFixer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens)
8989
* @param Tokens $tokens
9090
* @param int $index
9191
*
92-
* @return string[]
92+
* @return array<array<string, bool|int>>
9393
*/
9494
private function getUnsetsInfo(Tokens $tokens, $index)
9595
{
@@ -152,7 +152,7 @@ private function isProperty(Tokens $tokens, $index, $endIndex)
152152
}
153153

154154
/**
155-
* @param string[] $unsetsInfo
155+
* @param array<array<string, bool|int>> $unsetsInfo
156156
*
157157
* @return bool
158158
*/
@@ -168,9 +168,9 @@ private function isAnyUnsetToTransform(array $unsetsInfo)
168168
}
169169

170170
/**
171-
* @param Tokens $tokens
172-
* @param string[] $unsetInfo
173-
* @param bool $isLastUnset
171+
* @param Tokens $tokens
172+
* @param array<string, bool|int> $unsetInfo
173+
* @param bool $isLastUnset
174174
*/
175175
private function updateTokens(Tokens $tokens, array $unsetInfo, $isLastUnset)
176176
{

src/Tokenizer/TokensAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getClassyElements()
6464
*
6565
* @param bool $perNamespace Return namespace uses per namespace
6666
*
67-
* @return array|array[]
67+
* @return int[]|int[][]
6868
*/
6969
public function getImportUseIndexes($perNamespace = false)
7070
{

0 commit comments

Comments
 (0)