[meta] Add scalar type hinting and return value typing

Created on 7 March 2019, almost 6 years ago
Updated 24 July 2024, 5 months ago

Drupal 8.7.0 is scheduled for release on May 1, 2019. With this release, Drupal will officially stop supporting PHP 5.

This means that after 1 May, we can add scalar type hints and return value typing. Stronger typing is always good.

This will be an API change, because the typing is part of method signatures, but we're still in alpha so it is allowed. In fact, that's WHY we are still in alpha, because we want to preserve the ability to make this sort of change before beta.

I marked this as major because I expect it to reveal typing problems, and it may require structural changes to fix these. It will be disruptive, but it's too important to delay.

I marked this as beta blocker because this is the sort of change we can't add anymore once we enter beta, so it has to be done now.

πŸ“Œ Task
Status

Fixed

Version

2.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024