You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✏️ Describe the bug
I'm implementing a nested Data object. When I manipulate $adults from outside (BookingEngine, which is a Livewire component) it manipulates $travelers as well. Once I type something in another input field it shows this message:
Spatie\LaravelData\Resolvers\TransformedDataCollectableResolver::Spatie\LaravelData\Resolvers\{closure}(): Argument #1 ($data) must be of type Spatie\LaravelData\Contracts\BaseData, array given, called in /var/www/vendor/spatie/laravel-data/src/Resolvers/TransformedDataCollectableResolver.php on line 81
↪️ To Reproduce
Provide us a pest test like this one which shows the problem:
✏️ Describe the bug
I'm implementing a nested Data object. When I manipulate
$adults
from outside (BookingEngine
, which is a Livewire component) it manipulates$travelers
as well. Once I type something in another input field it shows this message:↪️ To Reproduce
Provide us a pest test like this one which shows the problem:
BookingEngine.php
BookingEngineData.php
BookingEngineTravelerData.php
Export-1728390048014.mp4
✅ Expected behavior
No exception (see second show case in the video).
🖥️ Versions
Laravel: 11.26.0
Laravel Data: 4.10.1
PHP: 8.3
The text was updated successfully, but these errors were encountered: