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
I can confirm the issue. This occurs because we convert the sub_fields into an array within the get method. The next time it runs, the array is already converted. To address this, we could maybe clone the current field instance before processing it. Feel free to submit a pull request!
@vinkla I tested the changes in the PR using the PHPUnit tests provided in the repo. No errors were found. However, since I lack the overall picture of the tool, I would be glad to receive any feedback regarding my changes.
Description of the bug
Using ->dump() on a Field that has
sub_fields
always return the following error: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
The text was updated successfully, but these errors were encountered: