-
Notifications
You must be signed in to change notification settings - Fork 824
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
Add generic typehints in PHPDoc #11066
Comments
This was referenced Jan 10, 2024
Merged
I reviewed up to and including recipe-cms |
I reviewed up to and including login-forms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should add PHPDoc typehints for generics where appropriate, to improve DX and type safety.
Potentially Handy Links
Acceptance criteria
@return
and@param
directly)get()
,create()
, and any other methods where it would be relevant for injectorInjectable
- i.e.DataObject::create()
should just returnstatic
which it already does.GridFieldConfig::getComponentByType()
SapphireTest::objFromFixture()
Notes
PRs
@var
comments silverstripe-reports#172The text was updated successfully, but these errors were encountered: