extended-acf
extended-acf copied to clipboard
Calling ->dump() on a field with sub_fields always returns error
Description of the bug
Using ->dump() on a Field that has sub_fields
always return the following error:
Fatal error: Uncaught Error: Call to a member function get() on array
The dump itself is returned but the error happens afterwards.
Dumps on other fields are returned without any errors. Also tested on the Repeater field with the same resulting error as above.
Steps to reproduce
register_extended_field_group([
'title' => 'Kundeninformationen',
'fields' => [
Image::make('Logo'),
Text::make('Firmenname'),
Text::make('Strasse/Nr.'),
Text::make('PLZ'),
Text::make('Ort'),
Text::make('Telefon'),
Group::make('Social Media')
->fields([
URL::make('Facebook'),
URL::make('Instagram'),
URL::make('LinkedIn'),
URL::make('X'),
URL::make('YouTube'),
])->dump(),
],
'location' => [Location::where('post_type', 'page')],
]);