Skip to content

Commit 9037b98

Browse files
bwoodhigidi
authored andcommitted
Use equals not identical operator when comparing the request index to the recording index.
1 parent 3aa54e8 commit 9037b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VCR/Cassette.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function playback(Request $request, int $index = 0): ?Response
3030
{
3131
foreach ($this->storage as $recording) {
3232
$storedRequest = Request::fromArray($recording['request']);
33-
if ($index === $recording['index']) {
33+
if ($index == $recording['index']) {
3434
if ($storedRequest->matches($request, $this->getRequestMatchers())) {
3535
return Response::fromArray($recording['response']);
3636
}

0 commit comments

Comments
 (0)