-
Notifications
You must be signed in to change notification settings - Fork 837
Stricter return type for getBackingType
#1608
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
Conversation
The only backing types for Enums are `int` and `string`. The proper return type for `ReflectionEnum::getBackingType()` is thus `null|ReflectionNamedType`.
The only backing types for Enums are int and string. The proper return type for ReflectionEnum::getBackingType() is thus null|ReflectionNamedType. See also php/doc-en#1608
The only backing types for Enums are int and string. The proper return type for ReflectionEnum::getBackingType() is thus null|ReflectionNamedType. See also php/doc-en#1608 Closes GH-8687
|
Since that change will only be available as of PHP 8.2.0, the PR should not yet be merged; I've set the 8.2 milestone. Also, we need a changelog entry, which informs users about that change. You can copy the skeleton, and flesh it out. |
|
Have added the entry, but couldn't get phd to compile the source code to inspect the result. |
getBackingTypegetBackingType
Co-authored-by: Christoph M. Becker <[email protected]>
We should reconsider #877. |
Co-authored-by: Christoph M. Becker <[email protected]>
Co-authored-by: Christoph M. Becker <[email protected]>
|
Or provide a dockerized build command. Then you have 1 requirement that almost any developer will have installed or can easily install. |
|
Please move the Changelog section above the examples, to pass the QA test |
Co-authored-by: Sergey Panteleev <[email protected]>
The only backing types for Enums are
intandstring. The proper return type forReflectionEnum::getBackingType()is thusnull|ReflectionNamedType.