We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4dfb88 commit 8adaaa5Copy full SHA for 8adaaa5
src/Concerns/Wireable.php
@@ -11,9 +11,9 @@ trait Wireable
11
public static function fromLivewire($value)
12
{
13
if (is_array($value)) {
14
- json_decode(json_encode($value), true);
+ $array = json_decode(json_encode($value), true);
15
16
- return new static($value);
+ return new static($array);
17
}
18
19
if (is_object($value) && method_exists($value, 'toArray')) {
0 commit comments