Skip to content
This repository
Browse code

- Merge [3433].

  • Loading branch information...
commit 69cfb063d560c28df55b7b1ae883eb54788fdb3e 1 parent edbe33e
Sebastian Bergmann authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
4 PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
@@ -72,8 +72,8 @@ public function __construct($argumentIndex)
72 72
73 73 public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
74 74 {
75   - if (isset($invocation->parameters[$this->argumentIndex - 1])) {
76   - return $invocation->parameters[$this->argumentIndex - 1];
  75 + if (isset($invocation->parameters[$this->argumentIndex])) {
  76 + return $invocation->parameters[$this->argumentIndex];
77 77 } else {
78 78 return NULL;
79 79 }

0 comments on commit 69cfb06

Please sign in to comment.
Something went wrong with that request. Please try again.