Skip to content

Commit 1aa0ef7

Browse files
authored
Merge branch 'main' into fix-4620
2 parents 19712fe + ec284ac commit 1aa0ef7

File tree

7 files changed

+247
-30
lines changed

7 files changed

+247
-30
lines changed

.phpstan.dist.baseline.neon

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5010,6 +5010,36 @@ parameters:
50105010
count: 1
50115011
path: app/code/core/Mage/Paypal/Model/System/Config/Source/MerchantCountry.php
50125012

5013+
-
5014+
message: '#^Access to protected property Mage_Paypal_Model_Api_Nvp\:\:\$_setExpressCheckoutResponse\.$#'
5015+
identifier: property.protected
5016+
count: 1
5017+
path: app/code/core/Mage/PaypalUk/Model/Api/Express/Nvp.php
5018+
5019+
-
5020+
message: '#^Access to protected property Mage_Paypal_Model_Api_Nvp\:\:\$_doCaptureResponse\.$#'
5021+
identifier: property.protected
5022+
count: 1
5023+
path: app/code/core/Mage/PaypalUk/Model/Api/Nvp.php
5024+
5025+
-
5026+
message: '#^Access to protected property Mage_Paypal_Model_Api_Nvp\:\:\$_getTransactionDetailsResponse\.$#'
5027+
identifier: property.protected
5028+
count: 1
5029+
path: app/code/core/Mage/PaypalUk/Model/Api/Nvp.php
5030+
5031+
-
5032+
message: '#^Access to protected property Mage_Paypal_Model_Api_Nvp\:\:\$_paymentInformationResponse\.$#'
5033+
identifier: property.protected
5034+
count: 1
5035+
path: app/code/core/Mage/PaypalUk/Model/Api/Nvp.php
5036+
5037+
-
5038+
message: '#^Access to protected property Mage_Paypal_Model_Api_Nvp\:\:\$_refundTransactionResponse\.$#'
5039+
identifier: property.protected
5040+
count: 1
5041+
path: app/code/core/Mage/PaypalUk/Model/Api/Nvp.php
5042+
50135043
-
50145044
message: '#^Return type \(void\) of method Mage_PaypalUk_Model_Pro\:\:fetchTransactionInfo\(\) should be compatible with return type \(array\) of method Mage_Paypal_Model_Pro\:\:fetchTransactionInfo\(\)$#'
50155045
identifier: method.childReturnType
@@ -5347,7 +5377,7 @@ parameters:
53475377
path: app/code/core/Mage/Rule/Model/Condition/Product/Abstract.php
53485378

53495379
-
5350-
message: '#^Method Mage_Rule_Model_Condition_Product_Abstract\:\:getAttributeObject\(\) should return Mage_Catalog_Model_Resource_Eav_Attribute but returns Varien_Object\|false\.$#'
5380+
message: '#^Method Mage_Rule_Model_Condition_Product_Abstract\:\:getAttributeObject\(\) should return Mage_Catalog_Model_Resource_Eav_Attribute but returns Mage_Eav_Model_Entity_Attribute_Abstract\|Varien_Object\|false\.$#'
53515381
identifier: return.type
53525382
count: 1
53535383
path: app/code/core/Mage/Rule/Model/Condition/Product/Abstract.php

.rector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
->withSets([
2525
PHPUnitSetList::PHPUNIT_90,
2626
SetList::PRIVATIZATION,
27+
SetList::PHP_52,
2728
])
2829
->withRules([
2930
CodeQuality\BooleanNot\ReplaceMultipleBooleanNotRector::class,

app/code/core/Mage/Adminhtml/Block/Page/Menu.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ protected function _buildMenuArray(Varien_Simplexml_Element $parent, $path = '',
133133

134134
$menuArr = [];
135135

136+
$menuArr['id'] = str_replace(['/'], ['-'], $aclResource);
137+
136138
$menuArr['label'] = $this->_getHelperValue($child);
137139

138140
$menuArr['sort_order'] = $child->sort_order ? (int) $child->sort_order : $sortOrder;
@@ -269,6 +271,7 @@ public function getMenuLevel($menu, $level = 0)
269271
. (!empty($item['children']) ? ' parent' : '')
270272
. (!empty($level) && !empty($item['last']) ? ' last' : '')
271273
. ' level' . $level . '"> <a href="' . $item['url'] . '" '
274+
. (!empty($item['id']) ? 'id="nav-' . $item['id'] . '"' : '') . ' '
272275
. (!empty($item['title']) ? 'title="' . $item['title'] . '"' : '') . ' '
273276
. (!empty($item['target']) ? 'target="' . $item['target'] . '"' : '') . ' '
274277
. (!empty($item['click']) ? 'onclick="' . $item['click'] . '"' : '') . ' class="'

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
},
147147
"sort-packages": true
148148
},
149+
"suggest": {
150+
"n98/magerun": "The n98 magerun cli tools provides some handy tools to work with Magento from command line."
151+
},
149152
"scripts": {
150153
"php-cs-fixer:test": "vendor/bin/php-cs-fixer fix --dry-run --diff",
151154
"php-cs-fixer:fix": "vendor/bin/php-cs-fixer fix",
@@ -156,7 +159,7 @@
156159
"phpunit:coverage": "XDEBUG_MODE=coverage php vendor/bin/phpunit --configuration .phpunit.dist.xml --testdox",
157160
"phpunit:coverage-local": "XDEBUG_MODE=coverage php vendor/bin/phpunit --configuration .phpunit.dist.xml --coverage-html build/coverage",
158161
"rector:test": "vendor/bin/rector process --config .rector.php --dry-run",
159-
"rector:fix": "vendor/bin/rector --config .rector.php process",
162+
"rector:fix": "vendor/bin/rector process --config .rector.php",
160163
"test": [
161164
"@php-cs-fixer:test",
162165
"@phpstan",

composer.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)