Skip to content

Commit c2660cd

Browse files
authored
Fix PR 891 (#894)
1 parent 1a98753 commit c2660cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Field.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ public function compare($value, $value2 = null): bool
352352
return null;
353353
}
354354

355-
return (string) $this->typecastSaveField($value, true);
355+
$valueDb = $this->typecastSaveField($value, true);
356+
357+
return is_object($valueDb) ? serialize($valueDb) : (string) $valueDb;
356358
};
357359

358360
// compare if typecasted values are the same using strict comparison

0 commit comments

Comments
 (0)