Skip to content

refactor: change $request to CLIRequest|IncomingRequest in ResponseTrait #9658

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

Merged

Conversation

paulbalandan
Copy link
Member

Description
Given that we currently have an interface disconnect with the concrete implementations, I think it makes sense to change the phpdocs for now to those complete concrete classes.

Closes #9650

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

@paulbalandan paulbalandan added the refactor Pull requests that refactor code label Aug 2, 2025
Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

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

It might be a problem for PHPStan when we eventually replace the IncomingRequest class with our own implementation, but I assume it already is. So at least we will be fixing something from the IDE's perspective.

@paulbalandan paulbalandan merged commit 993e05c into codeigniter4:develop Aug 3, 2025
49 checks passed
@paulbalandan paulbalandan deleted the refactor-api-response-trait branch August 3, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Pull requests that refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VS Code complains about getPost as unknown method using ResponseTrait
4 participants