src/Viserio/Bridge/Twig/Extractor/TwigExtractor.php
public function extract($resource): array
    {
        $messages = [];

        foreach ($this->extractFiles($resource) as $file) {
            try {
                $messages = \array_merge($messages, $this->extractTemplate(\file_get_contents($file)));
            } catch (Error $exception) {
                $exception->setSourceContext(new Source('', \basename($file), \realpath($file)));

                throw $exception;
            }
        }

        return $messages;
    }
public function extract($resource): array
    {
        $messages = [];

        foreach ($this->extractFiles($resource) as $file) {
            try {
                $messages = \array_merge($messages, $this->extractTemplate(\file_get_contents($file)));
            } catch (Error $exception) {
                $exception->setSourceContext(new Source('', \basename($file), \realpath($file)));

                throw $exception;
            }
        }

        return $messages;
    }
{@inheritdoc}