Skip to content

Commit

Permalink
varidic support when you use allsiinterface (#841)
Browse files Browse the repository at this point in the history
* varidic support when you use allsiinterface
  • Loading branch information
Grummfy committed Mar 4, 2020
1 parent 19bb067 commit e90606b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,7 @@
# `dev-master`

* [#841](https://github.com/atoum/atoum/pull/841) Fix variadic support when you use all is interface in your mock ([@Grummfy])

# 3.4.1 - 2020-01-22

* [#840](https://github.com/atoum/atoum/pull/840) Remove unnecessary imports ([@Hywan])
Expand Down
2 changes: 1 addition & 1 deletion classes/mock/generator.php
Expand Up @@ -746,7 +746,7 @@ protected function getParametersSignature(\reflectionMethod $method, $forceMockC

case self::isDefaultParameterNull($parameter):
case $parameter->isOptional() && $parameter->isVariadic() == false:
case $mustBeNull:
case $mustBeNull && $parameter->isVariadic() == false:
$parameterCode .= ' = null';
}

Expand Down

0 comments on commit e90606b

Please sign in to comment.