Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Drupal Rector to Islandora. #943

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Apply Drupal Rector to Islandora. #943

merged 2 commits into from
Jun 21, 2023

Conversation

rosiel
Copy link
Member

@rosiel rosiel commented May 26, 2023

GitHub Issue: part of Islandora/documentation#2235

  • Other Relevant Links (Google Groups discussion, related pull requests,
    Release pull requests, etc.)

What does this Pull Request do?

Accepts suggestions made by Drupal Rector to fix deprecated code. This will be necessary before Drupal 10, but will also work with Drupal 9.

What's new?

Numerous rules applied.

  • Does this change add any new dependencies? no
  • Does this change require any other modifications to be made to the repository
    (i.e. Regeneration activity, etc.)? no
  • Could this change impact execution of existing code? yes, but it shouldn't!

How should this be tested?

  • Run the Islandora tests (in CI should do?)

Documentation Status

  • Does this change existing behaviour that's currently documented? hope not
  • Does this change require new pages or sections of documentation? no
  • Who does this need to be documented for? no
  • Associated documentation pull request(s): ___ or documentation issue ___

Additional Notes:

Any additional information that you think would be helpful when reviewing this
PR.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora/committers

@rosiel rosiel changed the title Drupal Rector. Apply Drupal Rector to Islandora. May 26, 2023
Copy link

@adam-vessey adam-vessey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Giving a quick look over, seems to be some funky things going on...

@alxp
Copy link

alxp commented Jun 21, 2023

I ran PHPUnit on this branch. It shows no new failing tests or errors on a D9 site, so this PR can be merged as is.

However it did show quite a few deprecation notices for code that will be removed in Drupal 10 that Rector may not have caught.

We can either do those changes in this ticket, or make a new one for those, either is fine with me.

phpunit_output_islandora-rosiel-drupal10.txt

@rosiel
Copy link
Member Author

rosiel commented Jun 21, 2023

(edit to say) I'll take a look at what can be fixed from that!

@rosiel rosiel self-assigned this Jun 21, 2023
@alxp alxp merged commit c41f574 into Islandora:2.x Jun 21, 2023
@rosiel rosiel deleted the drupal10 branch June 21, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants