Skip to content

Commit 7fabc8c

Browse files
committed
1 parent 2e5d6b9 commit 7fabc8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jenssegers/Mongodb/Eloquent/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ public function attributesToArray()
300300
foreach ($value as &$val) {
301301
$val = (string) $val;
302302
}
303-
} else {
304-
$value = (string) $value;
305303
} elseif ($value instanceof Binary) {
306304
$value = (string) $value->getData();
305+
} else {
306+
$value = (string) $value;
307307
}
308308

309309
Arr::set($attributes, $key, $value);

0 commit comments

Comments
 (0)