Skip to content

Commit 79fd367

Browse files
Merge pull request #143 from magento-commerce/MCLOUD-13147
Mcloud-13147: Added support for PHP 8.4
2 parents 0f6e8e5 + 0a066d6 commit 79fd367

20 files changed

+124
-79
lines changed

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento-cloud-docker",
33
"description": "Magento Cloud Docker",
44
"type": "magento2-component",
5-
"version": "1.4.0",
5+
"version": "1.5.0",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"
@@ -12,7 +12,7 @@
1212
"ext-json": "*",
1313
"composer/composer": "^1.9 || ^2.0",
1414
"composer/semver": "@stable",
15-
"illuminate/config": "^5.5||^8.77",
15+
"illuminate/config": "^10.0 || ^11.0",
1616
"symfony/config": "^4.4 || ^5.1|| ^5.4 || ^6.4",
1717
"symfony/console": "^4.4 || ^5.1 || ^5.4 || ^6.4",
1818
"symfony/dependency-injection": "^4.4 || ^5.1|| ^5.4 || ^6.4",
@@ -26,9 +26,9 @@
2626
"codeception/module-rest": "^1.2 || ^3.0",
2727
"consolidation/robo": "^2.0 || ^3.0",
2828
"phpmd/phpmd": "@stable",
29-
"phpstan/phpstan": "^1.8",
30-
"phpunit/phpunit": "^9.5",
31-
"squizlabs/php_codesniffer": "^3.6"
29+
"phpstan/phpstan": "^1.8 || ^2.0",
30+
"phpunit/phpunit": "^9.5 || ^10.5",
31+
"squizlabs/php_codesniffer": "^3.7"
3232
},
3333
"bin": [
3434
"bin/ece-docker"
@@ -37,7 +37,8 @@
3737
"psr-4": {
3838
"Magento\\CloudDocker\\": "src/",
3939
"Magento\\CloudDocker\\Test\\Integration\\": "tests/integration",
40-
"Magento\\CloudDocker\\Test\\Functional\\": "tests/functional/"
40+
"Magento\\CloudDocker\\Test\\Functional\\": "tests/functional/",
41+
"Magento\\CloudDocker\\Test\\Functional\\Support\\": "tests/functional/_support/"
4142
}
4243
},
4344
"scripts": {
@@ -55,7 +56,8 @@
5556
"test:integration": "phpunit --configuration tests/integration"
5657
},
5758
"config": {
58-
"sort-packages": true
59+
"sort-packages": true,
60+
"optimize-autoloader": true
5961
},
6062
"prefer-stable": true,
6163
"extra": {

src/App/GenericException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GenericException extends \Exception
1717
/**
1818
* @inheritDoc
1919
*/
20-
public function __construct(string $message, int $code = 0, Throwable $previous = null)
20+
public function __construct(string $message, int $code = 0, ?Throwable $previous = null)
2121
{
2222
parent::__construct($message, $code, $previous);
2323
}

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* @inheritdoc
1515
*
16-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
16+
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
1717
*/
1818
class Application extends \Symfony\Component\Console\Application
1919
{

src/Command/BuildCompose.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Builds Docker configuration for Magento project.
2727
*
28-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
28+
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
2929
*/
3030
class BuildCompose extends Command
3131
{
@@ -82,7 +82,7 @@ public function __construct(
8282
/**
8383
* {@inheritdoc}
8484
*
85-
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
85+
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
8686
*/
8787
protected function configure(): void
8888
{

src/Command/BuildCustomCompose.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Build configuration from custom-provided source.
2929
*
30-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
30+
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
3131
*/
3232
class BuildCustomCompose extends Command
3333
{

src/Command/Image/GeneratePhp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ private function build(string $version, string $edition): void
218218
* @throws ConfigurationMismatchException
219219
* @throws FileNotFoundException
220220
*
221-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
222-
* @SuppressWarnings(PHPMD.NPathComplexity)
223-
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
221+
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
222+
* @SuppressWarnings("PHPMD.NPathComplexity")
223+
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
224224
*/
225225
private function buildDockerfile(string $dockerfile, string $phpVersion, string $edition): string
226226
{

src/Compose/DeveloperBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct(
8484
/**
8585
* {@inheritDoc}
8686
*
87-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
87+
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
8888
*/
8989
public function build(Config $config): Manager
9090
{

src/Compose/Php/ExtensionResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function get(Config $config): array
158158
/**
159159
* @return array
160160
*
161-
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
161+
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
162162
*/
163163
public static function getConfig(): array
164164
{

src/Compose/ProductionBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ public function __construct(
8383
/**
8484
* {@inheritdoc}
8585
*
86-
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
87-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
88-
* @SuppressWarnings(PHPMD.NPathComplexity)
86+
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
87+
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
88+
* @SuppressWarnings("PHPMD.NPathComplexity")
8989
*/
9090
public function build(Config $config): Manager
9191
{

src/Config/Source/CliSource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ public function __construct(InputInterface $input)
166166
/**
167167
* {@inheritDoc}
168168
*
169-
* @SuppressWarnings(PHPMD.NPathComplexity)
170-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
171-
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
169+
* @SuppressWarnings("PHPMD.NPathComplexity")
170+
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
171+
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
172172
*/
173173
public function read(): Repository
174174
{

0 commit comments

Comments
 (0)