[BUGFIX] L10n parser interface is wrongly defined
authorXavier Perseguers <xavier@typo3.org>
Wed, 5 Sep 2012 07:18:10 +0000 (09:18 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 5 Sep 2012 07:19:29 +0000 (09:19 +0200)
The parsers extending the localization parser interface do not have a
compatible third parameter of method getParsedData() as it is optional
with the 3 implementations (PHP, ll-XML, XLIFF) but is not defined as
this in the interface.

Change-Id: Ifb2f2e9b94c61f53d626aa387513322fa0737c83
Fixes: #40641
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/14362
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/l10n/interfaces/interface.t3lib_l10n_parser.php

index 830d446..9f4fd01 100644 (file)
@@ -42,7 +42,7 @@ interface t3lib_l10n_parser {
         * @param string $charset Charset
         * @return array
         */
-       public function getParsedData($sourcePath, $languageKey, $charset);
+       public function getParsedData($sourcePath, $languageKey, $charset = '');
 
 }