Skip to content

Commit 209116a

Browse files
committed
Merge branch '4.0'
* 4.0: use brace-style regex delimiters Fixed typo RecursiveIterator -> RecursiveIteratorIterator [Cache] fix logic for fetching tag versions on TagAwareAdapter [FrameworkBundle] Remove dead code [FrameworkBundle] Use the correct service id for CachePoolPruneCommand in its compiler pass Hide short exception trace by default [Doctrine Bridge] fix priority for doctrine event listeners [Validator] make phpdoc of ObjectInitializerInterface interface more accurate [Validator] fixes phpdoc reference to an interface that was removed in Symfony 3.0
2 parents 3bae100 + 007635d commit 209116a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Command/XliffLintCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Translation\Command;
1313

1414
use Symfony\Component\Console\Command\Command;
15+
use Symfony\Component\Console\Exception\RuntimeException;
1516
use Symfony\Component\Console\Input\InputInterface;
1617
use Symfony\Component\Console\Input\InputOption;
1718
use Symfony\Component\Console\Output\OutputInterface;
@@ -81,14 +82,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
8182

8283
if (!$filename) {
8384
if (!$stdin = $this->getStdin()) {
84-
throw new \RuntimeException('Please provide a filename or pipe file content to STDIN.');
85+
throw new RuntimeException('Please provide a filename or pipe file content to STDIN.');
8586
}
8687

8788
return $this->display($io, array($this->validate($stdin)));
8889
}
8990

9091
if (!$this->isReadable($filename)) {
91-
throw new \RuntimeException(sprintf('File or directory "%s" is not readable.', $filename));
92+
throw new RuntimeException(sprintf('File or directory "%s" is not readable.', $filename));
9293
}
9394

9495
$filesInfo = array();
@@ -149,7 +150,7 @@ private function display(SymfonyStyle $io, array $files)
149150
case 'json':
150151
return $this->displayJson($io, $files);
151152
default:
152-
throw new \InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
153+
throw new InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
153154
}
154155
}
155156

0 commit comments

Comments
 (0)