mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
fix @Template twig print
This commit is contained in:
parent
070d6d87ab
commit
a7769f59a9
@ -33,8 +33,8 @@ trait PrintTagValueNodeTrait
|
||||
continue;
|
||||
}
|
||||
|
||||
// do not quote constant references
|
||||
if (Strings::match($item, '#\w+::\w+#')) {
|
||||
// do not quote constant references... unless twig template
|
||||
if (Strings::match($item, '#\w+::\w+#') && ! Strings::endsWith($item, '.twig')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user