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