mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Port from 1.x
This commit is contained in:
@ -160,7 +160,7 @@ final class Expectation
|
||||
}
|
||||
|
||||
foreach ($values as $key => $item) {
|
||||
if (is_callable($callbacks[$key])) {
|
||||
if ($callbacks[$key] instanceof Closure) {
|
||||
call_user_func($callbacks[$key], new self($item), new self($keys[$key]));
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user