Closed (duplicate)
Project:
Drupal 7 to Modern Drupal Module Upgrader
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2022 at 15:40 UTC
Updated:
5 Mar 2026 at 11:24 UTC
Jump to comment: Most recent
Comments
Comment #2
gábor hojtsyWhat's your PHP version?
Comment #3
gábor hojtsyAnd Drupal core version and DMU version :)
Comment #4
gábor hojtsyComment #5
joachim commentedPHP 8.0.8 (cli) (built: Sep 30 2021 13:54:04) ( NTS )
Drush Launcher Version: 0.10.1
Drush Commandline Tool 11.1.1
Drupal version : 9.5.0-dev
name : drupal/drupalmoduleupgrader
descrip. : A Drush command to update Drupal 7 modules to Drupal 8 or 9.
keywords : Drupal, PHP_CodeSniffer, phpcs, standards, update, upgrade
versions : * 1.9.0
I don't see any errors at all, which is weird!
However, this produces a report:
$ drush dmu-analyze permission_grid --path=modules/contrib/permission_grid
Comment #6
liam morlandThis could be because of #3280719: dmu_upgrade not compatible with PHP 8.0+.
Comment #7
gábor hojtsyYeah analyze works because it supports all the constructs you used in your Drupal 7 code. However PHP 8 has new tokens for the language constrcuts used in the Drupal 9/10 generated code, which Pharborist does not support. Help is welcome in #3280719: dmu_upgrade not compatible with PHP 8.0+, I made good progress but would need more help.
Comment #8
gábor hojtsyComment #9
gábor hojtsyI worked in the past two days with Claude Code to fix this. Pharborist now passes all its tests on both PHP 8.1 and 8.4 (and has new tests for new PHP 8 token constants). Also https://www.drupal.org/project/drupalmoduleupgrader/releases/2.0.0-alpha2 is available that now uses the new Pharborist version. Will credit you for the report.