psalm-plugin-symfony
psalm-plugin-symfony copied to clipboard
AnalyzedTemplatesTainter::generateTemplateParameters does not resolve expressions
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