Skip to content

Commit

Permalink
#3120 pseudo-docs for :self for when we can upgrade to PHP 7.4
Browse files Browse the repository at this point in the history
`InvocationStubber` methods cannot have return type declarations until
then.
  • Loading branch information
Ocramius authored and sebastianbergmann committed Sep 6, 2019
1 parent 0683511 commit 7d5db72
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Framework/MockObject/Builder/InvocationStubber.php
Expand Up @@ -17,46 +17,46 @@ interface InvocationStubber
public function will(Stub $stub): Identity;

/** @return self */
public function willReturn($value, ...$nextValues);
public function willReturn($value, ...$nextValues) /*: self */;

/**
* @param mixed $reference
*
* @return self
*/
public function willReturnReference(&$reference);
public function willReturnReference(&$reference) /*: self */;

/**
* @param array<int, array<int, mixed>> $valueMap
*
* @return self
*/
public function willReturnMap(array $valueMap);
public function willReturnMap(array $valueMap) /*: self */;

/**
* @param int $argumentIndex
*
* @return self
*/
public function willReturnArgument($argumentIndex);
public function willReturnArgument($argumentIndex) /*: self */;

/**
* @param callable $callback
*
* @return self
*/
public function willReturnCallback($callback);
public function willReturnCallback($callback) /*: self */;

/** @return self */
public function willReturnSelf();
public function willReturnSelf() /*: self */;

/**
* @param mixed $values
*
* @return self
*/
public function willReturnOnConsecutiveCalls(...$values);
public function willReturnOnConsecutiveCalls(...$values) /*: self */;

/** @return self */
public function willThrowException(\Throwable $exception);
public function willThrowException(\Throwable $exception) /*: self */;
}

0 comments on commit 7d5db72

Please sign in to comment.