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 #336

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Jan 11, 2024

Requires silverstripe/silverstripe-framework#11108 and the corresponding silverstripe/cms PR for these generics to take effect.

Issue

use SilverStripe\Control\Email\Email;
use SilverStripe\Core\Extension;
use SilverStripe\Forms\Form;

/**
* Customises the comment form to conform to government usability standards
*
* {@see CommentingController}
* @extends DataExtension<CommentingController>
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
* @extends DataExtension<CommentingController>
* @extends Extension<CommentingController>

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

@@ -16,6 +16,8 @@
*
* When the user clicks on a month, pagination will be reset, but tags retained. Pagination retains all other
* parameters.
*
* @extends DatedUpdateHolderController<NewsHolder>
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
* @extends DatedUpdateHolderController<NewsHolder>
* @extends DatedUpdateHolderController<EventHolder>

? I'm not sure if this is correct or not

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops! Yup good catch. That was a copy paste error.
Fixed.

@emteknetnz emteknetnz merged commit f6b4670 into silverstripe:3 Jan 23, 2024
9 checks passed
@emteknetnz emteknetnz deleted the pulls/3/add-generics branch January 23, 2024 20:40
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