- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → these changes make this module compatible with Drupal 11! 🎉
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-127659These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.9
- palantirnet/drupal-rector: 0.20.1
- Status changed to RTBC
4 months ago 8:34am 8 August 2024 - 🇯🇵Japan kazuko.murata
The MR works in the local development environment on Drupal 11.0.0.
I have attached a screenshot of the page. - 🇭🇰Hong Kong hswong3i
Apply this MR for D11 now with:
... "repositories": { "https://packages.drupal.org/8": { "canonical": false, "type": "composer", "url": "https://packages.drupal.org/8" }, "https://drupal.org/node/3434813": { "canonical": false, "type": "vcs", "url": "https://git.drupalcode.org/issue/styleguide-3434813.git" }, }, ... "require": { "drupal/styleguide": "dev-project-update-bot-only", } ...
- First commit to issue fork.
- 🇺🇸United States dcam
I removed the
drupal/core
requirement from the newcomposer.json
file. Previously the documentation on adding acomposer.json
file specified that it's better to not definedrupal/core
as a dependency. But I just discovered that information was removed earlier this month, see https://www.drupal.org/node/2514612/revisions/view/13628499/13705720 → . Still, it's unnecessary and it can be a pain for someone who is updating modules.I also removed compatibility for unsupported versions of Core, which has been my practice in the modules that I maintain.
- 🇭🇰Hong Kong hswong3i
@dcam with your changes the PR now couldn't install with composer...
$ sudo -E composer update -n --ignore-platform-reqs Gathering patches for root package. Loading composer repositories with package information Skipped branch project-update-bot-only, "dde82c4462415a5b82679b994e448f246034fd9a:composer.json" does not contain valid JSON Parse error on line 7: ...roject/styleguide",} ---------------------^ Expected: 'STRING' - It appears you have an extra trailing comma In VcsRepository.php line 421: No valid composer.json was found in any branch or tag of https://git.drupalcode.org/issue/styleguide-3434 813.git, could not load a package from it.
- 🇺🇸United States dcam
Sorry about that. It was a hastily-made in the web IDE. I should know better.
- First commit to issue fork.
- 🇮🇳India ankitv18
I saw minimum Drupal version is 10.3 so removed previous phpunit variables.
If D9 support is required then please do add back those variables for executing the phpunit on previous versions.