Skip to content

Commit 4100616

Browse files
author
Kenneth Ocastro
committed
Add checks if value is array
1 parent c0b0858 commit 4100616

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Rule.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ private function interpretCondition(array $condition): string
267267
default => throw new Exception("Unknown operator: $operator"),
268268
};
269269

270+
if (is_array($value)) {
271+
$value = json_encode($value);
272+
}
273+
270274
return "$factDisplay $operatorText $value";
271275
}
272276
}

0 commit comments

Comments
 (0)