psalm-plugin-symfony icon indicating copy to clipboard operation
psalm-plugin-symfony copied to clipboard

AnalyzedTemplatesTainter::generateTemplateParameters does not resolve expressions

Open timglabisch opened this issue 4 years ago • 0 comments

the function generateTemplateParameters just supports very basic array types. for exampe this code ends up in an exception:

this->templating->render('@xxxxx.html.twig', array_merge($commonParams, []))
this->templating->render('@xxxxx.html.twig', $commonParams + [])

https://github.com/psalm/psalm-plugin-symfony/blob/2992656853b564fa18cdf45d446ecb80cbf7fa0b/src/Twig/AnalyzedTemplatesTainter.php#L114

timglabisch avatar Nov 19 '21 10:11 timglabisch