Skip to content

Commit

Permalink
Merge pull request #1054 from thiagorb/fix-variadic-args
Browse files Browse the repository at this point in the history
Fix DocBlocks for variadic arguments
  • Loading branch information
davedevelopment committed May 13, 2020
2 parents eca936d + a24085d commit 2cbbf95
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions library/Mockery/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ protected function _matchArg($expected, &$actual)
/**
* Expected argument setter for the expectation
*
* @param mixed|mixed[] ...$args
* @param mixed ...$args
*
* @return self
*/
public function with(...$args)
Expand Down Expand Up @@ -486,7 +487,7 @@ public function withAnyArgs()
/**
* Expected arguments should partially match the real arguments
*
* @param mixed[] ...$expectedArgs
* @param mixed ...$expectedArgs
* @return self
*/
public function withSomeOfArgs(...$expectedArgs)
Expand All @@ -504,7 +505,7 @@ public function withSomeOfArgs(...$expectedArgs)
/**
* Set a return value, or sequential queue of return values
*
* @param mixed|mixed[] ...$args
* @param mixed ...$args
* @return self
*/
public function andReturn(...$args)
Expand All @@ -516,7 +517,7 @@ public function andReturn(...$args)
/**
* Set a return value, or sequential queue of return values
*
* @param mixed|mixed[] ...$args
* @param mixed ...$args
* @return self
*/
public function andReturns(...$args)
Expand Down Expand Up @@ -551,7 +552,7 @@ public function andReturnValues(array $values)
* values. The arguments passed to the expected method are passed to the
* closures as parameters.
*
* @param callable[] ...$args
* @param callable ...$args
* @return self
*/
public function andReturnUsing(...$args)
Expand Down

0 comments on commit 2cbbf95

Please sign in to comment.