- 🇳🇿New Zealand quietone
Convert to new issue summary. The proposed changes about BC have not been converted because it is already documented at Existing functions and methods → .
Adding typehints to existing code is a backwards compatibility break. Typehints can (and should) be added in a major version if a deprecation warning is first raised in an earlier minor version. See #3050720: [Meta] Implement strict typing in existing code for strategies and ongoing discussion.
- Status changed to Active
9 months ago 10:24pm 16 July 2024 - 🇳🇿New Zealand quietone
The second proposed text change here 2 may not be needed as in #3263602: Allow type hinting with classes where appropriate → it is proposed to remove that entire section.
Are there supporters for this change?
- 🇳🇱Netherlands kingdutch
I think the newer text here is more useful to outline Drupal's stance towards PHP hints. I also think that the new text shows that removing the block entirely ( #3263602: Allow type hinting with classes where appropriate → ) leaves a gap in our coding standards about type-hinting. That's likely because the other issue is focused only on interfaces.