Add generic types where appropriate, e.g. for indicating the type of records inside DataList or ArrayList.
Replace @property annotation for extension $owner property with a generic extension. This works effectively the same way, with the bonus benefit that the return type for getOwner() is also correct.
[x] All commits are relevant to the purpose of the PR (e.g. no debug statements, unrelated refactoring, or arbitrary linting)
Small amounts of additional linting are usually okay, but if it makes it hard to concentrate on the relevant changes, ask for the unrelated changes to be reverted, and submitted as a separate PR.
Description
@property
annotation for extension $owner property with a generic extension. This works effectively the same way, with the bonus benefit that the return type for getOwner() is also correct.@var
comments.Requires https://github.com/silverstripe/silverstripe-framework/pull/11108 for these generics to take effect.
Manual testing steps
You can validate that the types are evaluating correctly in your preferred code editor.
Issues
Pull request checklist