Skip to content

Commit 38fa79e

Browse files
authored
Update AsArrayObject.php use ARRAY_AS_PROPS (#49534)
1 parent 81b0c16 commit 38fa79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Casts/AsArrayObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function get($model, $key, $value, $attributes)
2525

2626
$data = Json::decode($attributes[$key]);
2727

28-
return is_array($data) ? new ArrayObject($data) : null;
28+
return is_array($data) ? new ArrayObject($data, ArrayObject::ARRAY_AS_PROPS) : null;
2929
}
3030

3131
public function set($model, $key, $value, $attributes)

0 commit comments

Comments
 (0)