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

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

GuySartorelli
Copy link
Member

* @mixin RecursivePublishable
*
* @extends DataExtension<DataObject&RecursivePublishable&Versioned>
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<DataObject&RecursivePublishable&Versioned>
* @extends DataExtension<DataObject&RecursivePublishable&static>

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

* @param string $stage The name of the stage.
* @param string $filter A filter to be inserted into the WHERE clause.
* @param boolean $cache Use caching.
* @param string $sort A sort expression to be inserted into the ORDER BY clause.
*
* @return DataObject
* @return T&Versioned
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
* @return T&Versioned
* @return T&static

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

* @param int $id
* @return DataObject
* @return T&Versioned
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
* @return T&Versioned
* @return T&static

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

src/VersionedStateExtension.php Show resolved Hide resolved
@emteknetnz emteknetnz merged commit 96736c2 into silverstripe:2 Jan 19, 2024
9 checks passed
@emteknetnz emteknetnz deleted the pulls/2/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