diff --git a/Source/Option.php b/Source/Option.php index 74fa7a5..cc6c3eb 100644 --- a/Source/Option.php +++ b/Source/Option.php @@ -33,7 +33,7 @@ final class Option extends \Df\Config\Source { * @used-by \Df\Config\Source::toOptionArray() * @return array(string => string) */ - protected function map():array {return df_sort_names(df_map( + protected function map():array {return df_sort_l(df_map( function(array $a):string {return dfa_deep($a, 'title/' . df_lang_ru_en());} ,array_filter(df_module_json($this, 'options'), function(array $a):bool {return !df_bool( dfa($a, 'hideOnCheckout') diff --git a/composer.json b/composer.json index 9d3bed3..2ae12e5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/yandex-kassa" - ,"version": "1.2.1" + ,"version": "1.2.2" ,"description": "Yandex.Kassa (Яндекс.Касса, Yandex.Checkout) integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/yandex-kassa" @@ -11,7 +11,7 @@ "homepage": "https://upwork.com/fl/mage2pro", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=10.2.1"} + ,"require": {"mage2pro/core": ">=10.8.2"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\YandexKassa\\": ""}} ,"keywords": [ "API"