-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strongly type FieldList #11198
Comments
The ACs should specify whether any of that is in scope, or if this card is only for methods defined directly in |
PRs merged |
Many methods on FieldList will silently fail if you give them bad types.
e.g.:
$fields->addFieldsToTab('Root.Main', $field1, $field2, $field3)
will only add$field1
to the tab.Acceptance criteria
FieldList
that are not covered by other interfaces are strongly typed and have an explicit return type.addFieldsToTab
hard fails if the second parameter is not an array.Shared CI workflow run
PRs
The text was updated successfully, but these errors were encountered: