Skip to content

Commit 0010883

Browse files
committed
Merge branch 'v1' into v1-develop
2 parents 4a43f81 + 6b3f9de commit 0010883

File tree

13 files changed

+2343
-944
lines changed

13 files changed

+2343
-944
lines changed

.php-auto-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
php81
1+
php82

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ check: checkstyle checkquality test
1010

1111
.PHONY: checkstyle
1212
checkstyle:
13-
vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff --stop-on-violation --allow-risky=yes
13+
PHP_CS_FIXER_IGNORE_ENV=1 vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff --stop-on-violation --allow-risky=yes
1414
vendor-bin/phpcs/vendor/bin/phpcs -s --standard=Magento2 --exclude=Magento2.Security.InsecureFunction,Magento2.Commenting.ClassPropertyPHPDocFormatting,Magento2.Annotation.MethodAnnotationStructure,Magento2.Annotation.MethodArguments,PSR12.Properties.ConstantVisibility --ignore=./vendor/,./vendor-bin/ .
1515
vendor-bin/phpcs/vendor/bin/phpcs -s --standard=PHPCompatibility --runtime-set testVersion 7.0- --ignore=./vendor/,./vendor-bin/,./Test/ .
1616
vendor-bin/phpcs/vendor/bin/phpcs -s --standard=PHPCompatibility --runtime-set testVersion 7.1- ./Test/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ It should be up to the store owner to figure out how he/she wants to fix these p
2929
This module should be compatible with Magento 2.1.x, 2.2.x, 2.3.x and 2.4.x versions.
3030
Some code in this module is using old ways of doing things. It could have been written in a more modern way (using message queues instead of cronjobs, use newer syntax for UI components, ...). But we wanted this module to be compatible with older versions of Magento, so we've chosen this route for now.
3131

32-
The module should be compatible with PHP 7.0, 7.1, 7.2, 7.3, 7.4 and 8.1
32+
The module should be compatible with PHP 7.0, 7.1, 7.2, 7.3, 7.4, 8.1 and 8.2
3333

3434
## Installation
3535

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Catalog\Model\ResourceModel\Product\Collection as ProductCollection;
1414
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory as ProductCollectionFactory;
1515
use Magento\Framework\DataObject;
16-
use PHPUnit\Framework\MockObject\MockObject;
1716
use PHPUnit\Framework\TestCase;
1817

1918
class DuplicateUrlKeyTest extends TestCase
@@ -48,7 +47,6 @@ function ($productData) use ($storeId) {
4847

4948
$collectionsPerStoreId = array_map(
5049
function ($productsData) {
51-
/** @var MockObject $productCollectionMock */
5250
$productCollectionMock = $this->getMockBuilder(ProductCollection::class)
5351
->disableOriginalConstructor()
5452
->getMock();
@@ -74,7 +72,6 @@ function ($productsData) {
7472
$dataPerStoreId
7573
);
7674

77-
/** @var StoresUtil&MockObject */
7875
$storesUtilMock = $this
7976
->getMockBuilder(StoresUtil::class)
8077
->disableOriginalConstructor()
@@ -83,13 +80,11 @@ function ($productsData) {
8380
->method('getAllStoreIds')
8481
->willReturn($storeIds);
8582

86-
/** @var Progress&MockObject */
8783
$progressMock = $this
8884
->getMockBuilder(Progress::class)
8985
->disableOriginalConstructor()
9086
->getMock();
9187

92-
/** @var ProductCollectionFactory&MockObject */
9388
$productCollectionFactoryMock = $this
9489
->getMockBuilder(ProductCollectionFactory::class)
9590
->disableOriginalConstructor()
@@ -110,7 +105,6 @@ function ($productsData) {
110105
->method('containsValue')
111106
->willReturn(true);
112107

113-
/** @var AttributeScopeOverriddenValueFactory&MockObject */
114108
$attributeScopeOverriddenValueFactoryMock = $this
115109
->getMockBuilder(AttributeScopeOverriddenValueFactory::class)
116110
->disableOriginalConstructor()
@@ -120,7 +114,6 @@ function ($productsData) {
120114
->method('create')
121115
->willReturn($attributeScopeOverriddenValueMock);
122116

123-
/** @var ConfigUtil&MockObject */
124117
$configUtilMock = $this
125118
->getMockBuilder(ConfigUtil::class)
126119
->disableOriginalConstructor()

Test/Storage/CacheStorageTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Baldwin\UrlDataIntegrityChecker\Storage\CacheStorage;
88
use Magento\Framework\App\Cache as AppCache;
9-
use PHPUnit\Framework\MockObject\MockObject;
109
use PHPUnit\Framework\TestCase;
1110

1211
class CacheStorageTest extends TestCase
@@ -19,7 +18,6 @@ public function testUpdatingNonExisting()
1918
'key2' => 'value2',
2019
];
2120

22-
/** @var AppCache&MockObject */
2321
$cacheMock = $this
2422
->getMockBuilder(AppCache::class)
2523
->disableOriginalConstructor()
@@ -57,7 +55,6 @@ public function testUpdatingExisting()
5755
'key3' => 'value3',
5856
];
5957

60-
/** @var AppCache&MockObject */
6158
$cacheMock = $this
6259
->getMockBuilder(AppCache::class)
6360
->disableOriginalConstructor()
@@ -95,7 +92,6 @@ public function testClear()
9592

9693
$expectedData = [];
9794

98-
/** @var AppCache&MockObject */
9995
$cacheMock = $this
10096
->getMockBuilder(AppCache::class)
10197
->disableOriginalConstructor()

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.1.0",
14+
"php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.1.0 || ~8.2.0",
1515
"magento/framework": "^100.1 || ^101.0 || ^102.0 || ^103.0",
1616
"magento/module-backend": "^100.1 || ^101.0 || ^102.0",
1717
"magento/module-catalog": "^101.0 || ^102.0 || ^103.0 || ^104.0",

0 commit comments

Comments
 (0)