Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Merge [3433].

  • Loading branch information...
commit 69cfb063d560c28df55b7b1ae883eb54788fdb3e 1 parent edbe33e
Sebastian Bergmann authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
4 PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
View
@@ -72,8 +72,8 @@ public function __construct($argumentIndex)
public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
{
- if (isset($invocation->parameters[$this->argumentIndex - 1])) {
- return $invocation->parameters[$this->argumentIndex - 1];
+ if (isset($invocation->parameters[$this->argumentIndex])) {
+ return $invocation->parameters[$this->argumentIndex];
} else {
return NULL;
}
Please sign in to comment.
Something went wrong with that request. Please try again.