Twig-View icon indicating copy to clipboard operation
Twig-View copied to clipboard

Update PHPDoc annotations for `Twig::render`

Open mspirkov opened this issue 4 months ago • 0 comments

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 avatar Aug 12 '25 12:08 mspirkov