Skip to content

Commit 69fca91

Browse files
authored
Merge pull request #1 from wubinworks/bugfix/fixed-too-few-arguments-error
Fixed "Too few arguments" error. Solved by adding default argument values.
2 parents d098c89 + 5b10e1a commit 69fca91

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Plugin/TranslatePlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ protected function getCache()
103103
*/
104104
public function beforeLoadData(
105105
\Magento\Framework\TranslateInterface $subject,
106-
$area,
107-
$forceReload
106+
$area = null,
107+
$forceReload = false
108108
): array {
109109
$magentoTranslateParams = $this->registry->registry('magento_translate_params');
110110
$magentoTranslateParams->setData('area', $area);

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ede1898ae98320c99f8234d5c364e48a
1+
8163c6c5345f6e4c7c654585fb6f3889

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"magento/module-translation": "*"
99
},
1010
"type": "magento2-module",
11-
"version": "1.0.0",
11+
"version": "1.0.1",
1212
"license": "OSL-3.0",
1313
"authors": [
1414
{

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
10-
<module name="Wubinworks_Translation" setup_version="1.0.0">
10+
<module name="Wubinworks_Translation" setup_version="1.0.1">
1111
<sequence>
1212
<module name="Magento_Framework"/>
1313
<module name="Magento_Translation"/>

0 commit comments

Comments
 (0)