Drupal 12 Release Team Plans to Bundle Disruptive Code Changes Ahead of RC1

One Planned Disruption Window for Stricter Checks and Core Code Cleanup
Discover Drupal graphic titled "When Code Cleanup Meets the Release Clock" with intersecting blue geometric lines. Explores stricter PHP checks and extensive testing changes ahead of Drupal 12 release restrictions.

Release managers have set November 2026 targets for three proposed Drupal core code-maintenance changes. The revised timing appears in the Drupal 12 and 11.5 beta-targets issue and related issue discussions updated on 12 October 2026.

The proposed coordination is intended to limit interruptions to other contributors' work. Changes affecting code-analysis rules and large numbers of existing files can create conflicts with open merge requests. Lee Rowlands, a Drupal core framework manager, explained the reasoning in a 10 October 2026 comment on the PHPUnit annotation cleanup issue. He said the preference was to commit three changes together to have "one disruptive period rather than three."

The three tasks cover stricter PHPStan checks, the removal of outdated PHPUnit test annotations and wider adoption of PHP 8 constructor property promotion. Drupal core release manager Jess Myrbo, known as xjm on Drupal.org, updated the target titles on 12 October 2026. The PHPStan proposal moved from mid-October to November, the constructor promotion proposal moved from October to November, and the annotation cleanup gained a November target.

An official Drupal Core News announcement published on 31 October 2026 confirmed that the release team intends to commit these changes before the first release candidates. It warned that existing core merge requests may encounter conflicts or new PHPStan failures. Commits that interfere with the coordinated changes may also be reverted to allow the larger changesets to proceed.

PHPStan Level 3: Stricter Static Analysis

The most substantial tooling change concerns raising PHPStan's rule level to 3. PHPStan analyses PHP code for potential errors without executing it. According to its official documentation, level 3 adds checks on return types and values assigned to properties. Drupal's proposal also includes a development dependency to improve how PHPStan interprets mocked objects used in tests.

The change would introduce stricter checks while allowing existing findings to remain in an error baseline. Drupal core release manager Victoria Spagnolo, known as quietone, questioned that trade-off on 1 October 2026. She reported that the proposed baseline would increase from approximately 1.7 MB to 3.3 MB and asked what size the project should be willing to accept. A baseline allows known errors to be excluded from blocking analysis runs without requiring them all to be fixed immediately.

Jess addressed the concern in a 31 October comment, arguing that stricter analysis would expose existing technical debt and help prevent new errors. She said the other four release managers had indicated support for the level 3 change.

The discussion expanded on 1 November when contributors proposed increasing PHPStan directly to level 5, which would also check argument types passed to methods and functions. Contributor nicxvan reported approximately 18,000 errors and a 4.3 MB baseline from a preliminary local test without the proposed Prophecy integration. On 2 November, Jess expressed support for considering the higher level and said she would consult the other release managers. The issue continues to target level 3, and no decision to adopt level 5 has been confirmed.

Removing Legacy PHPUnit Coverage Annotations

The PHPUnit cleanup would remove method-level @legacy-covers annotations that remained after test metadata was converted to attributes. It would also prevent new instances from being added. The issue has undergone community review and testing, although the changes have not yet been committed. Lee previously noted that the number of files affected could make the commit disruptive.

During the review, Dries Buytaert identified 16 cases where removing annotations would eliminate the only recorded coverage target for particular classes. He proposed adding #[CoversClass] attributes in a follow-up change without delaying the main cleanup.

Constructor Property Promotion: Reducing Repetitive Code

The third proposal, PHP 8 constructor property promotion, would reduce repetitive code by combining property declarations with constructor parameters. Its issue remains marked Needs work. The release-target tracker specifies that this change should follow the PHPStan level-3 upgrade.

The beta-target tracker also references a separate cleanup of unnecessary cspell:ignore entries through issue #3560682. It now includes additional targets involving CKEditor, PHPStan dependencies, Symfony and PHP compatibility, subject to their respective readiness and dependencies.

Edward Wu, a provisional Drupal core release manager known as godotislate, said in a 12 October 2026 issue comment that he had discussed completing the three coordinated changes with release manager Dave Long near the end of beta or potentially during the release-candidate phase. The release team's subsequent announcement confirms its intention to complete the disruptive work before RC1.

Once the beta targets are completed, Drupal 12.0 and 11.5 will enter the release-candidate phase. Under the core release policy, changes are more tightly restricted during this period. The 31 October announcement states that disruptive work will generally move to Drupal 12.1, with exceptions for critical dependency updates and similar issues.

The published Drupal core release schedule remains unchanged. Drupal 12.0.0-rc1 and Drupal 11.5.0-rc1 are targeted for the week of 9 November 2026, followed by stable releases in the week of 7 December 2026. The coordinated code-maintenance work does not constitute an announcement of a release delay.

Disclosure: This content is produced with the assistance of AI.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Upcoming Events