Skip to content

Commit

Permalink
Merge pull request #771 from fernandobandeira/patch-1
Browse files Browse the repository at this point in the history
Cast expectedArgs to array (fix php7.2)
  • Loading branch information
davedevelopment committed Aug 2, 2017
2 parents 63b8445 + f8d6e42 commit 349d878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Mockery/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function matchArgs(array $args)
return $this->_matchArg($this->_expectedArgs[0], $args);
}
$argCount = count($args);
if ($argCount !== count($this->_expectedArgs)) {
if ($argCount !== count((array) $this->_expectedArgs)) {
return false;
}
for ($i=0; $i<$argCount; $i++) {
Expand Down

0 comments on commit 349d878

Please sign in to comment.