Skip to content

Commit 1b6250a

Browse files
Update src/Testing/TableTestState.php
Co-authored-by: Copilot <[email protected]>
1 parent f5ade29 commit 1b6250a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Testing/TableTestState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function prepareChanges(array $changes): array
9090

9191
return array_map(function ($item) use ($jsonFields) {
9292
foreach ($jsonFields as $jsonField) {
93-
if (Arr::has($item, $jsonField) && json_validate($item[$jsonField])) {
93+
if (Arr::has($item, $jsonField) && is_string($item[$jsonField]) && json_validate($item[$jsonField])) {
9494
$item[$jsonField] = json_decode($item[$jsonField], true);
9595
}
9696
}

0 commit comments

Comments
 (0)