From acf872191c9636f35eb810727ae35ab5bb388205 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Fri, 4 Oct 2024 11:06:31 +0200 Subject: [PATCH] Fix livewire return type to make sure it can return everything in the data object (#836) --- src/Support/Livewire/LivewireDataSynth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Livewire/LivewireDataSynth.php b/src/Support/Livewire/LivewireDataSynth.php index 10109dd92..3a2fda8cf 100644 --- a/src/Support/Livewire/LivewireDataSynth.php +++ b/src/Support/Livewire/LivewireDataSynth.php @@ -30,7 +30,7 @@ public static function match($target): bool return $target instanceof BaseData && $target instanceof TransformableData; } - public function get(&$target, $key): BaseData + public function get(&$target, $key): mixed { return $target->{$key}; }