Skip to content

fix: ensure calling env command with options only would not throw#10114

Merged
paulbalandan merged 1 commit intocodeigniter4:developfrom
paulbalandan:env-fix-arg
Apr 13, 2026
Merged

fix: ensure calling env command with options only would not throw#10114
paulbalandan merged 1 commit intocodeigniter4:developfrom
paulbalandan:env-fix-arg

Conversation

@paulbalandan
Copy link
Copy Markdown
Member

Description
When the env command is called without an argument but only with options other than --help and --no-header, the command will throw a TypeError.

Checklist:

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

@paulbalandan paulbalandan added the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 13, 2026
@paulbalandan paulbalandan merged commit 554be61 into codeigniter4:develop Apr 13, 2026
69 of 71 checks passed
@paulbalandan paulbalandan deleted the env-fix-arg branch April 13, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants