Skip to content

Commit 7cad4e0

Browse files
Merge branch '2.8'
* 2.8: Remove whitespaces between <input> and <label> [Translation][File dumper] allow new child classes to implement only formatCatalogue. [travis] Remove PHP 7 from allowed failures [Translation] Clean whitespaces and EOL in xliff-core-2.0.xsd [Finder] Optimize the hot-path Update Process.php Conflicts: .travis.yml composer.json src/Symfony/Bridge/Doctrine/composer.json
2 parents a4aa6e4 + 80fa362 commit 7cad4e0

File tree

3 files changed

+415
-417
lines changed

3 files changed

+415
-417
lines changed

Dumper/FileDumper.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ protected function formatCatalogue(MessageCatalogue $messages, $domain, array $o
114114
*
115115
* @deprecated since version 2.8, to be removed in 3.0. Overwrite formatCatalogue() instead.
116116
*/
117-
abstract protected function format(MessageCatalogue $messages, $domain);
117+
protected function format(MessageCatalogue $messages, $domain)
118+
{
119+
throw new \LogicException('The "FileDumper::format" method needs to be overwritten, you should implement either "format" or "formatCatalogue".');
120+
}
118121

119122
/**
120123
* Gets the file extension of the dumper.

0 commit comments

Comments
 (0)