-
Notifications
You must be signed in to change notification settings - Fork 57
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 #182
ENH Add generic types #182
Conversation
73d0f49
to
8ebfc7a
Compare
@@ -36,7 +38,7 @@ public function getMyVirtualPages() | |||
} | |||
|
|||
/** | |||
* @return array|SS_List | |||
* @return iterable<SiteTree> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update StaticPublishingTrigger return type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Done
@@ -92,7 +94,7 @@ public function objectsToUpdate($context) | |||
/** | |||
* This method controls which caches will be purged | |||
* | |||
* @return array|SS_List | |||
* @return iterable<SiteTree> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update StaticPublishingTrigger return type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
8ebfc7a
to
a1d0e65
Compare
Requires silverstripe/silverstripe-framework#11108 for these generics to take effect.
Issue