Skip to content

Commit fa0436a

Browse files
committed
stringify
1 parent 71ea1fc commit fa0436a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Renderer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ public function setFormat($format)
107107
*/
108108
public function render($from, $to)
109109
{
110+
if (!is_array($from)) {
111+
$from = (string)$from;
112+
}
113+
114+
if (!is_array($to)) {
115+
$to = (string)$to;
116+
}
117+
110118
// get diff
111119
$diff = $this->differ->diffToArray($from, $to);
112120

0 commit comments

Comments
 (0)