task: #3599939 Automated Drupal 12 compatibility fixes for mapillary 1.0.x-dev

Supersedes the Project Update Bot MR !1 (closed), rebased on the current 1.0.x.

Changes

  • core_version_requirement: ^11.2 || ^12 in all eight info files.
  • Replace $entity->original with $entity->getOriginal() in the hook_entity_update() implementations. The property is removed in Drupal 12, where the update cascades would silently stop working. This needs 11.2+, so 11.0 and 11.1 are dropped (both unsupported upstream).
  • Make injected services protected and non-readonly in forms, widgets, formatters and queue workers, so DependencySerializationTrait can restore them (also on PHP 8.3).
  • Add the table class option to the Images, Sequences and Organizations admin Views.
  • Tests: PHPUnit attributes instead of docblock metadata, fix kernel test setup order, remove setAccessible(), fix invalid mocks.
  • README.md and AGENTS.md updated.

Testing

  • Upgrade Status: no known issues (was 34 warnings).
  • All 151 tests pass on Drupal 11.4 / PHP 8.5.
  • phpstan (level 6) and phpcs: no new errors.

Notes

Installing on Drupal 12 still needs Drupal 12 releases of leaflet and entity.

Closes #3599939

Merge request reports

Loading
Loading