File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Symfony/Component/Translation Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use PhpParser \Node ;
15
15
use PhpParser \NodeVisitor ;
16
+ use Symfony \Component \Translation \TranslatableMessage ;
16
17
17
18
/**
18
19
* @author Mathieu Santostefano <msantostefano@protonmail.com>
@@ -39,7 +40,7 @@ public function leaveNode(Node $node): ?Node
39
40
return null ;
40
41
}
41
42
42
- if (! \in_array ( ' TranslatableMessage ' , $ className ->getParts (), true ) ) {
43
+ if (TranslatableMessage::class !== $ className ->name ) {
43
44
return null ;
44
45
}
45
46
Original file line number Diff line number Diff line change 1
1
<?php
2
- // @see https://github.com/php-translation/extractor/blob/master/tests/Resources/Php/Symfony/ExplicitLabelType.php
3
2
4
3
use Symfony \Component \Form \AbstractType ;
5
4
use Symfony \Component \Form \Extension \Core \Type \CollectionType ;
You can’t perform that action at this time.
0 commit comments