Skip to content

Commit 7673bba

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fix-compose-vulnerability
2 parents 8d902ac + a195268 commit 7673bba

20 files changed

+137
-28
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"composer/composer": "^1.4 || ^2.0",
1414
"composer/semver": "@stable",
1515
"illuminate/config": "^5.5||^8.77",
16-
"symfony/config": "^4.4 || ^5.1",
17-
"symfony/console": "^2.8 || ^4.0 || ^5.1",
18-
"symfony/dependency-injection": "^3.3 || ^4.3 || ^5.1",
19-
"symfony/yaml": "^3.3 || ^4.0 || ^5.1"
16+
"symfony/config": "^4.4 || ^5.1|| ^5.4 || ^6.4",
17+
"symfony/console": "^2.8 || ^4.0 || ^5.1 || ^5.4 || ^6.4",
18+
"symfony/dependency-injection": "^3.3 || ^4.3 || ^5.1|| ^5.4 || ^6.4",
19+
"symfony/yaml": "^3.3 || ^4.0 || ^5.1 || ^5.4|| ^6.4"
2020
},
2121
"require-dev": {
2222
"codeception/codeception": "^4.1",
@@ -26,7 +26,7 @@
2626
"codeception/module-rest": "^1.2",
2727
"consolidation/robo": "^1.2 || ^2.0",
2828
"phpmd/phpmd": "@stable",
29-
"phpstan/phpstan": "^0.12",
29+
"phpstan/phpstan": "^1.8",
3030
"phpunit/phpunit": "^8.5 || ^9.5",
3131
"squizlabs/php_codesniffer": "^3.0"
3232
},

config/services.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<prototype namespace="Magento\CloudDocker\" resource="../src/*" exclude="../src/{Test}"/>
1010
<service id="Magento\CloudDocker\App\Container" autowire="false"/>
1111
<service id="Magento\CloudDocker\App\ContainerInterface" alias="container"/>
12+
<service id="Psr\Container\ContainerInterface" alias="service_container"/>
1213
<service id="Magento\CloudDocker\App\ContainerException" autowire="false"/>
1314
<service id="Magento\CloudDocker\Compose\BuilderFactory">
1415
<argument key="$strategies" type="collection">

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(ContainerInterface $container)
3535
/**
3636
* @inheritdoc
3737
*/
38-
protected function getDefaultCommands()
38+
protected function getDefaultCommands(): array
3939
{
4040
return array_merge(parent::getDefaultCommands(), [
4141
$this->container->get(Command\BuildCompose::class),

src/Compose/ProductionBuilder/Service/ElasticSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getConfig(Config $config): array
7373
return $this->serviceFactory->create(
7474
$this->getServiceName(),
7575
$config->getServiceVersion($this->getServiceName()),
76-
!empty($esEnvVars) ? ['environment' => $esEnvVars] : [],
76+
['environment' => $esEnvVars],
7777
$config->getServiceImage($this->getServiceName()),
7878
$config->getCustomRegistry(),
7979
$config->getServiceImagePattern($this->getServiceName())

src/Compose/ProductionBuilder/Service/OpenSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function getConfig(Config $config): array
8484
return $this->serviceFactory->create(
8585
$this->getServiceName(),
8686
$this->getVersion($config),
87-
!empty($osEnvVars) ? ['environment' => $osEnvVars] : [],
87+
['environment' => $osEnvVars],
8888
$config->getServiceImage($this->getServiceName()),
8989
$config->getCustomRegistry(),
9090
$config->getServiceImagePattern($this->getServiceName())
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\CloudDocker\Test\Functional\Acceptance;
9+
10+
use Robo\Exception\TaskException;
11+
12+
/**
13+
* @group php82
14+
*/
15+
class Acceptance82Cest extends AcceptanceCest
16+
{
17+
/**
18+
* Template version for testing
19+
*/
20+
protected const TEMPLATE_VERSION = '2.4.6';
21+
}

src/Test/Functional/Acceptance/AcceptanceCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
use Robo\Exception\TaskException;
1111

1212
/**
13-
* @group php82
13+
* @group php83
1414
*/
1515
class AcceptanceCest extends AbstractCest
1616
{
1717
/**
1818
* Template version for testing
1919
*/
20-
protected const TEMPLATE_VERSION = '2.4.6';
20+
protected const TEMPLATE_VERSION = '2.4.7-beta-test';
2121

2222
/**
2323
* @param \CliTester $I
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\CloudDocker\Test\Functional\Acceptance;
9+
10+
use CliTester;
11+
12+
/**
13+
* @group php82
14+
*/
15+
class Developer82Cest extends DeveloperCest
16+
{
17+
/**
18+
* Template version for testing
19+
*/
20+
protected const TEMPLATE_VERSION = '2.4.6';
21+
}

src/Test/Functional/Acceptance/DeveloperCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
use CliTester;
1111

1212
/**
13-
* @group php82
13+
* @group php83
1414
*/
1515
class DeveloperCest extends AbstractCest
1616
{
1717
/**
1818
* Template version for testing
1919
*/
20-
protected const TEMPLATE_VERSION = '2.4.6';
20+
protected const TEMPLATE_VERSION = '2.4.7-beta-test';
2121

2222
/**
2323
* Tests that php settings contains configuration from php.dev.ini
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\CloudDocker\Test\Functional\Acceptance;
9+
10+
use CliTester;
11+
use Codeception\Example;
12+
use Robo\Exception\TaskException;
13+
14+
/**
15+
* @group php82
16+
*/
17+
class Elasticsearch82Cest extends ElasticsearchCest
18+
{
19+
/**
20+
* Template version for testing
21+
*/
22+
protected const TEMPLATE_VERSION = '2.4.6';
23+
}

0 commit comments

Comments
 (0)