There was an error while loading. Please reload this page.
1 parent 3aa54e8 commit 9037b98Copy full SHA for 9037b98
src/VCR/Cassette.php
@@ -30,7 +30,7 @@ public function playback(Request $request, int $index = 0): ?Response
30
{
31
foreach ($this->storage as $recording) {
32
$storedRequest = Request::fromArray($recording['request']);
33
- if ($index === $recording['index']) {
+ if ($index == $recording['index']) {
34
if ($storedRequest->matches($request, $this->getRequestMatchers())) {
35
return Response::fromArray($recording['response']);
36
}
0 commit comments