Skip to content

Commit e934ced

Browse files
author
Stanislav Idolov
committed
Minor fixes for builds stabilization
1 parent 78c5087 commit e934ced

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dev/tests/functional/tests/app/Magento/Multishipping/Test/TestStep/FillShippingInformationStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(
5858
public function run()
5959
{
6060
$shippingMethods = [];
61-
$addressCount = $this->customer->getAddress();
61+
$addressCount = count($this->customer->getAddress());
6262
for ($i = 0; $i < $addressCount; $i++) {
6363
$shippingMethods[] = $this->shippingMethod;
6464
}

dev/tests/static/testsuite/Magento/Test/Legacy/ObsoleteCodeTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,8 @@ private function _checkConstantWithClasspath($constant, $class, $replacement, $c
501501
{
502502
$classPathParts = explode('\\', $class);
503503
$classPartialPath = '';
504-
$classPathPartsCount = count($classPathParts);
505-
for ($i = $classPathPartsCount - 1; $i >= 0; $i--) {
506-
if ($i === ($classPathPartsCount - 1)) {
504+
for ($i = count($classPathParts) - 1; $i >= 0; $i--) {
505+
if ($i === (count($classPathParts) - 1)) {
507506
$classPartialPath = $classPathParts[$i] . $classPartialPath;
508507
} else {
509508
$classPartialPath = $classPathParts[$i] . '\\' . $classPartialPath;

0 commit comments

Comments
 (0)