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

Commit c06554d

Browse files
jjergususox
authored andcommitted
replace call_user_func() call
1 parent e34b812 commit c06554d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Expectation.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class Expectation implements ExpectationInterface {
9494
$param_expectation = $this->parameters[$key];
9595
if (\is_callable($param_expectation)) {
9696
invariant(
97-
\call_user_func($param_expectation as dynamic, $param),
97+
($param_expectation as dynamic)($param),
9898
'Parameter validation failed'
9999
);
100100
} else {

0 commit comments

Comments
 (0)