Skip to content

Commit

Permalink
fix: nested list cassette scrubbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Sep 19, 2024
1 parent 0896a92 commit a484be9
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 51 deletions.
8 changes: 3 additions & 5 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ function scrubCassette(mixed $data): mixed
// Root-level list scrubbing
if (InternalUtil::isList($data)) {
foreach ($data as $index => $item) {
if (is_array($index)) {
if (is_array($item)) {
if (array_key_exists($key, $item)) {
$data[$index][$key] = $replacement;
}
if (is_array($item)) {
if (array_key_exists($key, $item)) {
$data[$index][$key] = $replacement;
}
}
}
Expand Down
46 changes: 23 additions & 23 deletions test/cassettes/carrier_accounts/all.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions test/cassettes/carrier_accounts/types.yml

Large diffs are not rendered by default.

0 comments on commit a484be9

Please sign in to comment.