Skip to content

fix: support array indexes in getPostGet() and getGetPost()#10362

Open
michalsn wants to merge 2 commits into
codeigniter4:developfrom
michalsn:fix/array-indexes-in-get-post
Open

fix: support array indexes in getPostGet() and getGetPost()#10362
michalsn wants to merge 2 commits into
codeigniter4:developfrom
michalsn:fix/array-indexes-in-get-post

Conversation

@michalsn

@michalsn michalsn commented Jul 1, 2026

Copy link
Copy Markdown
Member

Description
This PR fixes IncomingRequest::getPostGet() and getGetPost() throwing a TypeError when passed an array of indexes. Each index now respects the expected GET/POST precedence, with tests and documentation updates.

Closes #10361

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

@michalsn michalsn added the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 1, 2026
@michalsn

michalsn commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

I will fix this PR after #10364 is merged.

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.

Bug: $this->request->getGetPost() is inconsistent with $this->request->getGet()

1 participant