Skip to content

fix: run setup migrations through command helper - #1376

Merged
michalsn merged 1 commit into
codeigniter4:developfrom
michalsn:fix/ci48-compatibility
Aug 23, 2026
Merged

fix: run setup migrations through command helper#1376
michalsn merged 1 commit into
codeigniter4:developfrom
michalsn:fix/ci48-compatibility

Conversation

@michalsn

Copy link
Copy Markdown
Member

Description
This PR fixes the setup command when working with CodeIgniter 4.8.0-dev.

In CodeIgniter 4.8, the constructor of the CodeIgniter\Commands\Database\Migrate command was changed as part of the new command API. Shield previously instantiated this command directly using its legacy constructor.

This change uses the command() helper instead, avoiding coupling to the constructor and supporting both legacy and modern command APIs.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn
michalsn requested a review from paulbalandan August 22, 2026 10:40
@michalsn michalsn added the bug Something isn't working label Aug 22, 2026
@michalsn
michalsn merged commit 65ec1ba into codeigniter4:develop Aug 23, 2026
38 of 39 checks passed
@michalsn

Copy link
Copy Markdown
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants