Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private function isInsideTestCase(Scope $scope): bool
}

/**
* @return Arg[]
* @return array{Arg, Arg, Arg}
*/
private function createArgs(Variable $dimFetchVariable, Expr $dimExpr): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ public function refactor(Node $node): ?Node
return $this->processCallWithBinaryOp($node, $firstArgumentValue);
}

private function processCallWithBinaryOp(MethodCall|StaticCall $node, BinaryOp $binaryOp): ?Node
/**
* @template TNode of MethodCall|StaticCall
* @param TNode $node
* @return TNode|null
*/
private function processCallWithBinaryOp(MethodCall|StaticCall $node, BinaryOp $binaryOp): MethodCall|StaticCall|null
{
$binaryOpClass = $binaryOp::class;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ public function refactor(Node $node): ?Node
return $this->refactorArrayDimFetchNode($node, $issetExpr);
}

private function refactorArrayDimFetchNode(MethodCall|StaticCall $node, ArrayDimFetch $arrayDimFetch): Node
/**
* @template TNode of MethodCall|StaticCall
* @param TNode $node
* @return TNode
*/
private function refactorArrayDimFetchNode(MethodCall|StaticCall $node, ArrayDimFetch $arrayDimFetch): MethodCall|StaticCall
{
$this->identifierManipulator->renameNodeWithMap($node, [
AssertMethod::ASSERT_TRUE => 'assertArrayHasKey',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function refactor(Node $node): null|array|Expression
}

/**
* @return Stmt[]
* @return array{Expression, Expression}
*/
private function refactorToWillReturnCallback(
MethodCall $withConsecutiveMethodCall,
Expand Down
Loading