File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/Symfony/Bridge/Twig/Translation Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bridge \Twig \Translation ;
13
13
14
14
use Symfony \Component \Finder \Finder ;
15
- use Symfony \Component \Finder \SplFileInfo ;
16
15
use Symfony \Component \Translation \Extractor \AbstractFileExtractor ;
17
16
use Symfony \Component \Translation \Extractor \ExtractorInterface ;
18
17
use Symfony \Component \Translation \MessageCatalogue ;
@@ -58,13 +57,7 @@ public function extract($resource, MessageCatalogue $catalogue)
58
57
try {
59
58
$ this ->extractTemplate (file_get_contents ($ file ->getPathname ()), $ catalogue );
60
59
} catch (Error $ e ) {
61
- if ($ file instanceof \SplFileInfo) {
62
- $ path = $ file ->getRealPath () ?: $ file ->getPathname ();
63
- $ name = $ file instanceof SplFileInfo ? $ file ->getRelativePathname () : $ path ;
64
- $ e ->setSourceContext (new Source ('' , $ name , $ path ));
65
- }
66
-
67
- throw $ e ;
60
+ // ignore errors, these should be fixed by using the linter
68
61
}
69
62
}
70
63
}
You can’t perform that action at this time.
0 commit comments