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

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

GuySartorelli
Copy link
Member

@@ -36,7 +38,7 @@ public function getMyVirtualPages()
}

/**
* @return array|SS_List
* @return iterable<SiteTree>
Copy link
Member

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

Copy link
Member Author

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>
Copy link
Member

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

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 192ea76 into silverstripe:6 Jan 19, 2024
9 checks passed
@emteknetnz emteknetnz deleted the pulls/6/add-generics branch January 19, 2024 04:09
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