Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0464fe3

Browse files
committed
Merge branch '4.2'
2 parents c21e3d4 + 614d8aa commit 0464fe3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ public function attributesToArray()
21572157
// formatting while accessing attributes vs. arraying / JSONing a model.
21582158
foreach ($this->getDates() as $key)
21592159
{
2160-
if ( ! array_key_exists($key, $attributes)) continue;
2160+
if ( ! isset($attributes[$key])) continue;
21612161

21622162
$attributes[$key] = (string) $this->asDateTime($attributes[$key]);
21632163
}

0 commit comments

Comments
 (0)