Skip to content

Commit 584296d

Browse files
committed
Declare array shapes on positional tuple returns
1 parent cde0feb commit 584296d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎rules/CodeQuality/NodeFactory/AssertArrayHasKeyCallFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private function isInsideTestCase(Scope $scope): bool
4444
}
4545

4646
/**
47-
* @return Arg[]
47+
* @return array{Arg, Arg, Arg}
4848
*/
4949
private function createArgs(Variable $dimFetchVariable, Expr $dimExpr): array
5050
{

‎rules/PHPUnit100/Rector/StmtsAwareInterface/WithConsecutiveRector.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function refactor(Node $node): null|array|Expression
228228
}
229229

230230
/**
231-
* @return Stmt[]
231+
* @return array{Expression, Expression}
232232
*/
233233
private function refactorToWillReturnCallback(
234234
MethodCall $withConsecutiveMethodCall,

0 commit comments

Comments
 (0)