Skip to content

Conversation

@mspirkov
Copy link

@mspirkov mspirkov commented Aug 12, 2025

The render method returns the same $response that was passed as an argument (only the body changes). Currently, the IDE and PHPStan do not understand this. I suggest making a small change to the annotations to fix this.

Example:

image

Before changes:

image

After changes:

image

@mspirkov mspirkov changed the title Update PHPDoc annotations for Twig::render Update PHPDoc annotations for Twig::render() Dec 16, 2025
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.

1 participant