[BUGFIX] L10n parser interface is wrongly defined
authorXavier Perseguers <xavier@typo3.org>
Wed, 5 Sep 2012 06:52:55 +0000 (08:52 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 5 Sep 2012 07:15:56 +0000 (09:15 +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/14358
Reviewed-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/core/Classes/Localization/Parser/LocalizationParserInterface.php

index a8af240..2481634 100644 (file)
@@ -43,7 +43,7 @@ interface LocalizationParserInterface
         * @param string $charset Charset
         * @return array
         */
         * @param string $charset Charset
         * @return array
         */
-       public function getParsedData($sourcePath, $languageKey, $charset);
+       public function getParsedData($sourcePath, $languageKey, $charset = '');
 
 }
 
 
 }