mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feature
This commit is contained in:
@ -125,8 +125,8 @@ final class Expectation
|
||||
}
|
||||
|
||||
if (is_callable($callback)) {
|
||||
foreach ($this->value as $item) {
|
||||
$callback(new self($item));
|
||||
foreach ($this->value as $key => $item) {
|
||||
$callback(new self($item), $key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user