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

Fix MigrateController::$migrationPathMap #6693

Merged
merged 2 commits into from Dec 8, 2023

Conversation

martin-rueegg
Copy link
Contributor

@martin-rueegg martin-rueegg commented Dec 1, 2023

MigrateController::$migrationPathMap would store the sum of the migrations encountered so far while collecting the migrations of the different migration paths. This makes no sense at all. :-)

This PR fixes that only the migrations of a given $path are stored under MigrateController::$migrationPathMap[$path].

In addition, type cleanup is applied.

PR Admin

What kind of change does this PR introduce?

  • Bugfix
  • Refactor

Does this PR introduce a breaking change?

  • Yes

If yes, please describe the impact and migration path for existing applications:

Type restrictions as documented in MIGRATE-DEV.md. However, there's no inheritance of the class in the core and unlikely in modules. So risk is low.

The PR fulfills these requirements:

  • It's submitted to the develop branch, not the master branch if no hotfix
  • All tests are passing
  • New/updated tests are included
  • Changelog was modified

@luke- luke- enabled auto-merge December 7, 2023 14:55
auto-merge was automatically disabled December 7, 2023 22:27

Head branch was pushed to by a user without write access

@martin-rueegg
Copy link
Contributor Author

Sorry, by rebasing to resolve the conflict, I've disabled auto-merge ...

@luke- luke- added this pull request to the merge queue Dec 8, 2023
Merged via the queue into humhub:develop with commit a3590e9 Dec 8, 2023
6 checks passed
martin-rueegg added a commit to metaworx/humhub that referenced this pull request Dec 11, 2023
github-merge-queue bot pushed a commit that referenced this pull request Dec 11, 2023
@martin-rueegg martin-rueegg deleted the fix/migration-map branch December 12, 2023 11:55
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.

None yet

2 participants