Skip to content

Commit dfcc203

Browse files
authored
Merge pull request #44 from magento-commerce/develop
MCLOUD-8200: Release cloud tools
2 parents a2ff1b1 + e525467 commit dfcc203

7 files changed

+48
-5
lines changed

composer.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,33 @@
22
"name": "magento/magento-cloud-patches",
33
"description": "Provides critical fixes for Magento 2 Enterprise Edition",
44
"type": "magento2-component",
5-
"version": "1.0.12",
5+
"version": "1.0.13",
66
"license": "OSL-3.0",
7+
"repositories": {
8+
"repo.magento.com": {
9+
"type": "composer",
10+
"url": "https://repo.magento.com/"
11+
}
12+
},
713
"require": {
814
"php": "^7.0",
915
"ext-json": "*",
1016
"composer/composer": "@stable",
11-
"composer/semver": "^1.5||^2.0||^3.0",
17+
"composer/semver": "@stable",
1218
"symfony/config": "^3.3||^4.4||^5.1",
1319
"symfony/console": "^2.6||^4.0||^5.1",
1420
"symfony/dependency-injection": "^3.3||^4.3||^5.1",
1521
"symfony/process": "^2.1||^4.1||^5.1",
1622
"symfony/proxy-manager-bridge": "^3.3||^4.3||^5.1",
1723
"symfony/yaml": "^3.3||^4.0||^5.1",
18-
"monolog/monolog": "^1.16",
24+
"monolog/monolog": "^1.25||^2.3",
1925
"magento/quality-patches": "^1.1.0"
2026
},
2127
"require-dev": {
2228
"codeception/codeception": "^2.5.3",
2329
"consolidation/robo": "^1.2",
2430
"phpmd/phpmd": "@stable",
25-
"phpunit/phpunit": "^6.2",
31+
"phpunit/phpunit": "^7.2",
2632
"squizlabs/php_codesniffer": "^3.0"
2733
},
2834
"bin": [

patches.json

+4
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@
256256
">=2.3.4 <2.3.5": "MCLOUD-6139_MCLOUD-6211__redis_improvement_patches__2.3.4.patch",
257257
">=2.3.5 <2.3.6": "MCLOUD-6211__redis_improvement_patches__2.3.5.patch",
258258
">=2.4.0 <2.4.1": "MCLOUD-6659__fix_L2_redis_cache__2.4.0.patch"
259+
},
260+
"Incompatible PHP Method Fix": {
261+
"2.3.7-p1": "AC-384__Fix_Incompatible_PHP_Method__2.3.7-p1_ce.patch",
262+
"2.4.3": "AC-384__Fix_Incompatible_PHP_Method__2.4.3_ce.patch"
259263
}
260264
},
261265
"magento/module-paypal": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Nuar a/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php b/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php
2+
--- a/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php (revision d40e8cbfd24ac841900166877e9910f9d549fdf5)
3+
+++ b/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php (revision 7d6a3eeb669d4a11978bf639dc2536ef23d56d09)
4+
@@ -71,7 +71,7 @@
5+
6+
foreach ($this->fileDenyList as $file) {
7+
$baseName = pathinfo($actualPath, PATHINFO_BASENAME);
8+
- if (str_contains($baseName, $file) || preg_match('#' . "\." . $file . '#', $fullPath)) {
9+
+ if (strpos($baseName, $file) !== false || preg_match('#' . "\." . $file . '#', $fullPath)) {
10+
throw new ValidatorException(
11+
new Phrase('"%1" is not a valid file path', [$path])
12+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Nuar a/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php b/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php
2+
--- a/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php (revision d40e8cbfd24ac841900166877e9910f9d549fdf5)
3+
+++ b/vendor/magento/framework/Filesystem/Directory/DenyListPathValidator.php (revision 7d6a3eeb669d4a11978bf639dc2536ef23d56d09)
4+
@@ -71,7 +71,7 @@
5+
6+
foreach ($this->fileDenyList as $file) {
7+
$baseName = pathinfo($actualPath, PATHINFO_BASENAME);
8+
- if (str_contains($baseName, $file) || preg_match('#' . "\." . $file . '#', $fullPath)) {
9+
+ if (strpos($baseName, $file) !== false || preg_match('#' . "\." . $file . '#', $fullPath)) {
10+
throw new ValidatorException(
11+
new Phrase('"%1" is not a valid file path', [$path])
12+
);

src/App/Logger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(
5252
/**
5353
* @inheritDoc
5454
*/
55-
public function info($message, array $context = [])
55+
public function info($message, array $context = []): void
5656
{
5757
$message = strip_tags($message);
5858

src/Patch/Conflict/Analyzer.php

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function analyze(PatchInterface $failedPatch, array $patchFilter = []): s
8888
*/
8989
private function analyzeOptional(string $failedPatchId, array $patchFilter = []): string
9090
{
91+
$errorMessage = '';
9192
$optionalPatchIds = $patchFilter ?: $this->optionalPool->getIdsByType(PatchInterface::TYPE_OPTIONAL);
9293
$ids = $this->getIncompatiblePatches($optionalPatchIds, $failedPatchId);
9394
if ($ids) {

src/Test/Unit/Patch/Conflict/AnalyzerTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ public function analyzeDataProvider(): array
143143
],
144144
'expectedMessage' => 'Patch MC-1 can\'t be applied to clean Magento instance'
145145
],
146+
[
147+
'checkApplyMap' => [
148+
[['REQUIRED-1', 'REQUIRED-2', 'MC-1'], true],
149+
[['OPTIONAL-1', 'MC-1'], true],
150+
[['OPTIONAL-2', 'MC-1'], true],
151+
],
152+
'expectedMessage' => ''
153+
],
146154
];
147155
}
148156

0 commit comments

Comments
 (0)