-
Notifications
You must be signed in to change notification settings - Fork 34
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
ENH Add generic types #431
Conversation
55a86f1
to
da12f4f
Compare
src/Versioned.php
Outdated
* @mixin RecursivePublishable | ||
* | ||
* @extends DataExtension<DataObject&RecursivePublishable&Versioned> |
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.
* @extends DataExtension<DataObject&RecursivePublishable&Versioned> | |
* @extends DataExtension<DataObject&RecursivePublishable&static> |
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
src/Versioned.php
Outdated
* @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 |
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.
* @return T&Versioned | |
* @return T&static |
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
src/Versioned.php
Outdated
* @param int $id | ||
* @return DataObject | ||
* @return T&Versioned |
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.
* @return T&Versioned | |
* @return T&static |
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
da12f4f
to
1637059
Compare
Requires silverstripe/silverstripe-framework#11108 for these generics to take effect.
Issue