Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
replace call_user_func() call
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus authored and usox committed Jan 21, 2021
1 parent e34b812 commit c06554d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expectation.hh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ final class Expectation implements ExpectationInterface {
$param_expectation = $this->parameters[$key];
if (\is_callable($param_expectation)) {
invariant(
\call_user_func($param_expectation as dynamic, $param),
($param_expectation as dynamic)($param),
'Parameter validation failed'
);
} else {
Expand Down

0 comments on commit c06554d

Please sign in to comment.