Skip to content

Commit bc12e35

Browse files
Merge pull request #169 from magento-commerce/MCLOUD-13145
Add support for PHP 8.4 to ece-tools
2 parents 5356cb7 + c15a604 commit bc12e35

File tree

122 files changed

+2049
-1070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2049
-1070
lines changed

codeception.dist.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ settings:
99
extensions:
1010
enabled:
1111
- Codeception\Extension\RunFailed
12-
- Codeception\Extension\FailedInfo
1312
params:
1413
- vendor/magento/magento-cloud-docker/tests/functional/configuration.dist.yml
1514
- env

composer.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"version": "2002.1.19",
66
"license": "OSL-3.0",
77
"repositories": {
8+
"mcd": {
9+
"type": "vcs",
10+
"url": "https://github.com/magento-commerce/magento-cloud-docker.git"
11+
},
812
"repo.magento.com": {
913
"type": "composer",
1014
"url": "https://repo.magento.com/"
@@ -16,17 +20,17 @@
1620
"ext-json": "*",
1721
"ext-sockets": "*",
1822
"colinmollenhour/credis": "^1.6.0 || ^1.13",
19-
"composer/composer": "^1.9 || ^2.0 || !=2.2.16",
23+
"composer/composer": "^1.9 || ^2.8 || !=2.2.16",
2024
"composer/semver": "@stable",
2125
"graylog2/gelf-php": "^2.0.1",
2226
"guzzlehttp/guzzle": "^7.3 || ^7.5",
23-
"illuminate/config": "^5.5||^8.77",
27+
"illuminate/config": "^10.0 || ^11.0",
2428
"magento/magento-cloud-components": "^1.0.8",
25-
"magento/magento-cloud-docker": "^1.0.0",
29+
"magento/magento-cloud-docker": "dev-MCLOUD-13147 as 1.3.99",
2630
"magento/magento-cloud-patches": "^1.0.20",
2731
"magento/quality-patches": "^1.1.0",
2832
"monolog/monolog": "^2.3 || ^2.7 || ^3.6",
29-
"nesbot/carbon": "^1.0 || ^2.0",
33+
"nesbot/carbon": "^1.0 || ^2.0 || ^3.8",
3034
"psr/container": "^1.0",
3135
"psr/log": "^1.0 || ^2.0 || ^3.0",
3236
"symfony/config": "^4.4 || ^5.1 || ^5.4 || ^6.4",
@@ -45,9 +49,9 @@
4549
"consolidation/robo": "^3.0",
4650
"php-mock/php-mock-phpunit": "^2.0",
4751
"phpmd/phpmd": "@stable",
48-
"phpstan/phpstan": "~1.2.0",
49-
"phpunit/php-code-coverage": "^9.2",
50-
"phpunit/phpunit": "^9.5",
52+
"phpstan/phpstan": "1.2.0 || ^2.0",
53+
"phpunit/php-code-coverage": "^10.0",
54+
"phpunit/phpunit": "^10.0",
5155
"squizlabs/php_codesniffer": "^3.0",
5256
"funkjedi/composer-include-files": "^1.0"
5357
},

src/App/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* @inheritdoc
2323
* @codeCoverageIgnore
24-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
24+
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
2525
*/
2626
class Container implements ContainerInterface
2727
{

src/App/ErrorHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class ErrorHandler
3131
E_USER_ERROR => 'User Error',
3232
E_USER_WARNING => 'User Warning',
3333
E_USER_NOTICE => 'User Notice',
34-
E_STRICT => 'Strict Notice',
3534
E_RECOVERABLE_ERROR => 'Recoverable Error',
3635
E_DEPRECATED => 'Deprecated Functionality',
3736
E_USER_DEPRECATED => 'User Deprecated Functionality',

src/App/GenericException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
/**
1313
* Base exception for general purposes.
1414
*
15-
* @SuppressWarnings(PHPMD.NumberOfChildren)
15+
* @SuppressWarnings("PHPMD.NumberOfChildren")
1616
*/
1717
class GenericException extends \Exception
1818
{
1919
/**
2020
* @inheritDoc
2121
*/
22-
public function __construct(string $message, int $code = 0, Throwable $previous = null)
22+
public function __construct(string $message, int $code = 0, Throwable | null $previous = null)
2323
{
2424
parent::__construct($message, $code, $previous);
2525
}

src/App/Logger/Formatter/JsonErrorFormatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function __construct(
5353
public function format(\Monolog\LogRecord|array $record): string
5454
{
5555
// Monolog version 3 or higher.
56+
/** @phpstan-ignore-next-line */
5657
if (\Monolog\Logger::API == 3) {
5758
try {
5859
/** @phpstan-ignore-next-line */

src/App/Logger/HandlerFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* The handler factory.
2525
*
26-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26+
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
2727
*/
2828
class HandlerFactory
2929
{
@@ -73,7 +73,7 @@ public function __construct(
7373
* @return AbstractProcessingHandler
7474
* @throws LoggerException
7575
*
76-
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
76+
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
7777
*/
7878
public function create(string $handler): AbstractProcessingHandler
7979
{
@@ -172,6 +172,7 @@ private function normalizeLevel(string $level): int
172172
/** @phpstan-ignore-next-line */
173173
$normalizedLevel = Logger::toMonologLevel($level);
174174

175+
/** @phpstan-ignore-next-line */
175176
if (\Monolog\Logger::API == 3) {
176177
/** @phpstan-ignore-next-line */
177178
$normalizedLevel = $normalizedLevel->value;

src/App/Logger/Processor/SanitizeProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Sanitizer $sanitizer)
3333
public function __invoke(\Monolog\LogRecord|array $record)
3434
{
3535
// Monolog version 3 or higher.
36-
if (\Monolog\Logger::API == 3) {
36+
if (\Monolog\Logger::API == 3) { // @phpstan-ignore-line
3737
$message = $this->sanitizer->sanitize($record->message); // @phpstan-ignore-line
3838
// Create new LogRecord from existing and update the message,
3939
// since message is read only

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* @inheritdoc
1717
*
18-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18+
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
1919
*/
2020
class Application extends \Symfony\Component\Console\Application
2121
{

src/Command/ConfigShow/Renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function renderTable(OutputInterface $output, string $title, array $he
114114
$table = new Table($output);
115115
$table->setHeaders($header)
116116
->setRows($rows);
117-
if (method_exists($table, 'setColumnWidth')) {
117+
if (method_exists($table, 'setColumnWidth')) { // @phpstan-ignore-line
118118
$table->setColumnWidth(0, 40);
119119
$table->setColumnWidth(1, 60);
120120
}

0 commit comments

Comments
 (0)