Skip to content

Commit

Permalink
Fix invokePrivate for static classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Mar 15, 2018
1 parent d2a62ac commit 7c70e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ protected static function invokePrivate($object, $methodName, array $parameters

$method->setAccessible(true);

return $method->invokeArgs($object, $parameters);
return $method->invokeArgs($reflection, $parameters);
} elseif ($reflection->hasProperty($methodName)) {
$property = $reflection->getProperty($methodName);

Expand Down

0 comments on commit 7c70e29

Please sign in to comment.