Skip to content
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

ENH Add generic types #524

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

GuySartorelli
Copy link
Member

@@ -31,7 +31,7 @@ class EnabledMembers extends Report
* Cached registered methods fetched for the current list of members. This should only be populated at render time
* as methods will be fetched for the current "records" on the report
*
* @var DataList|null
* @var DataList<RegisteredMethod>|ArrayList<RegisteredMethod>|null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @var DataList<RegisteredMethod>|ArrayList<RegisteredMethod>|null
* @var SS_List<RegisteredMethod>|null

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it should actually be ArrayList<RegisteredMethod>|null so I'll change to that. I made a mistake when sight-reading getRegisteredMethodsForRecords() (which is the only place where it's set) before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@emteknetnz emteknetnz merged commit 97e6c80 into silverstripe:5 Jan 19, 2024
12 checks passed
@emteknetnz emteknetnz deleted the pulls/5/add-generics branch January 19, 2024 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants