File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2626 "require-dev" : {
2727 "phpmyadmin/coding-standard" : " ^3.0.0" ,
2828 "phpmyadmin/motranslator" : " ^5.2" ,
29- "phpstan/phpstan" : " ^0.12.66 " ,
29+ "phpstan/phpstan" : " ^1.9.4 " ,
3030 "phpunit/phpunit" : " ^7 || ^8 || ^9"
3131 },
3232 "scripts" : {
Original file line number Diff line number Diff line change 2323use Twig \Node \Expression \TempNameExpression ;
2424use Twig \Node \Node ;
2525use Twig \Node \PrintNode ;
26+ use Twig \Node \TextNode ;
2627
2728use function array_merge ;
2829use function count ;
@@ -249,6 +250,7 @@ protected function compileString(Node $body): array
249250 $ msg .= sprintf ('%%%s%% ' , $ attributeName );
250251 $ vars [] = new NameExpression ($ attributeName , $ n ->getTemplateLine ());
251252 } else {
253+ /** @phpstan-var TextNode $node */
252254 $ msg .= $ node ->getAttribute ('data ' );
253255 }
254256 }
You can’t perform that action at this time.
0 commit comments