Skip to content

Commit 607441e

Browse files
committed
Merge branch 'v1-develop' into v1
2 parents 0b0443a + 1b27d8d commit 607441e

File tree

8 files changed

+2143
-1508
lines changed

8 files changed

+2143
-1508
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ check: checkstyle checkquality test
1212
checkstyle:
1313
vendor/bin/php-cs-fixer fix --dry-run --diff --stop-on-violation --allow-risky=yes
1414
vendor/bin/phpcs --standard=Magento2 --ignore=./vendor/ .
15-
vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.0- --ignore=./vendor/ .
15+
vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.0- --ignore=./vendor/,./Test/ .
16+
vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.1- ./Test/
1617
composer normalize --dry-run
1718

1819
.PHONY: checkquality

Model/ResourceModel/Catalog/Category/UrlKeyCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function loadData($printQuery = false, $logQuery = false)
5959

6060
$this->_setIsLoaded();
6161

62+
// fill $this->_totalRecords by calling getSize
63+
// if we don't do this and leave this up to Magento, it will do it too late in Magento 2.4.x
64+
$this->getSize();
65+
6266
// page the data, need to do this after setting the data as loaded,
6367
// otherwise the getCurPage would create a recursive problem
6468
$startIndex = ($this->getCurPage() - 1) * $this->getPageSize();

Model/ResourceModel/Catalog/Category/UrlPathCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function loadData($printQuery = false, $logQuery = false)
5959

6060
$this->_setIsLoaded();
6161

62+
// fill $this->_totalRecords by calling getSize
63+
// if we don't do this and leave this up to Magento, it will do it too late in Magento 2.4.x
64+
$this->getSize();
65+
6266
// page the data, need to do this after setting the data as loaded,
6367
// otherwise the getCurPage would create a recursive problem
6468
$startIndex = ($this->getCurPage() - 1) * $this->getPageSize();

Model/ResourceModel/Catalog/Product/UrlKeyCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function loadData($printQuery = false, $logQuery = false)
5959

6060
$this->_setIsLoaded();
6161

62+
// fill $this->_totalRecords by calling getSize
63+
// if we don't do this and leave this up to Magento, it will do it too late in Magento 2.4.x
64+
$this->getSize();
65+
6266
// page the data, need to do this after setting the data as loaded,
6367
// otherwise the getCurPage would create a recursive problem
6468
$startIndex = ($this->getCurPage() - 1) * $this->getPageSize();

Model/ResourceModel/Catalog/Product/UrlPathCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function loadData($printQuery = false, $logQuery = false)
5959

6060
$this->_setIsLoaded();
6161

62+
// fill $this->_totalRecords by calling getSize
63+
// if we don't do this and leave this up to Magento, it will do it too late in Magento 2.4.x
64+
$this->getSize();
65+
6266
// page the data, need to do this after setting the data as loaded,
6367
// otherwise the getCurPage would create a recursive problem
6468
$startIndex = ($this->getCurPage() - 1) * $this->getPageSize();

Test/Checker/Catalog/Product/UrlKey/DuplicateUrlKeyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DuplicateUrlKeyTest extends TestCase
2121
/** @var ObjectManagerHelper */
2222
private $objectManagerHelper;
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
$this->objectManagerHelper = new ObjectManagerHelper($this);
2727
}
@@ -56,6 +56,7 @@ function ($productData) use ($storeId) {
5656

5757
$collectionsPerStoreId = array_map(
5858
function ($productsData) {
59+
/** @var MockObject $productCollectionMock */
5960
$productCollectionMock = $this->objectManagerHelper
6061
->getCollectionMock(ProductCollection::class, $productsData);
6162

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
],
1313
"require": {
1414
"php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0",
15-
"magento/framework": "^100.1 || ^101.0 || ^102.0",
16-
"magento/module-backend": "^100.1 || ^101.0",
17-
"magento/module-catalog": "^101.0 || ^102.0 || ^103.0",
15+
"magento/framework": "^100.1 || ^101.0 || ^102.0 || ^103.0",
16+
"magento/module-backend": "^100.1 || ^101.0 || ^102.0",
17+
"magento/module-catalog": "^101.0 || ^102.0 || ^103.0 || ^104.0",
1818
"magento/module-cron": "^100.1",
1919
"magento/module-store": "^100.1 || ^101.0",
2020
"magento/module-ui": "^100.1 || ^101.0",
@@ -28,8 +28,8 @@
2828
"phpcompatibility/php-compatibility": "^9.2",
2929
"phpstan/extension-installer": "^1.0",
3030
"phpstan/phpstan": "^0.12.26",
31-
"phpunit/phpunit": "^7.5",
32-
"vimeo/psalm": "^3.11"
31+
"phpunit/phpunit": "^9.0",
32+
"vimeo/psalm": "^3.12"
3333
},
3434
"config": {
3535
"sort-packages": true

0 commit comments

Comments
 (0)