Skip to content

Commit 007635d

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: use brace-style regex delimiters Fixed typo RecursiveIterator -> RecursiveIteratorIterator [Cache] fix logic for fetching tag versions on TagAwareAdapter [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 ad3abf0 + 98414bc commit 007635d

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();
@@ -136,7 +137,7 @@ private function display(SymfonyStyle $io, array $files)
136137
case 'json':
137138
return $this->displayJson($io, $files);
138139
default:
139-
throw new \InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
140+
throw new InvalidArgumentException(sprintf('The format "%s" is not supported.', $this->format));
140141
}
141142
}
142143

0 commit comments

Comments
 (0)