Skip to content

Commit e837734

Browse files
committed
Merge branch 'develop' into php-8-4-docker-images
2 parents 520d92e + 4593886 commit e837734

18 files changed

+119
-77
lines changed

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"require": {
1111
"php": "^8.0",
1212
"ext-json": "*",
13-
"composer/composer": "^1.9 || ^2.0",
13+
"composer/composer": "^1.9 || ^2.8 || !=2.2.16",
1414
"composer/semver": "@stable",
15-
"illuminate/config": "^5.5||^8.77",
15+
"illuminate/config": "^8.77 || ^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": "^10.0",
31+
"squizlabs/php_codesniffer": "^3.7"
3232
},
3333
"bin": [
3434
"bin/ece-docker"
@@ -55,7 +55,8 @@
5555
"test:integration": "phpunit --configuration tests/integration"
5656
},
5757
"config": {
58-
"sort-packages": true
58+
"sort-packages": true,
59+
"optimize-autoloader": true
5960
},
6061
"prefer-stable": true,
6162
"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
@@ -219,9 +219,9 @@ private function build(string $version, string $edition): void
219219
* @throws ConfigurationMismatchException
220220
* @throws FileNotFoundException
221221
*
222-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
223-
* @SuppressWarnings(PHPMD.NPathComplexity)
224-
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
222+
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
223+
* @SuppressWarnings("PHPMD.NPathComplexity")
224+
* @SuppressWarnings("PHPMD.ExcessiveMethodLength")
225225
*/
226226
private function buildDockerfile(string $dockerfile, string $phpVersion, string $edition): string
227227
{

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)