Skip to content

Commit 43169af

Browse files
authored
Merge pull request #67 from magento-commerce/develop
MCLOUD-8200: Release cloud tools
2 parents ff1f609 + 32290b1 commit 43169af

38 files changed

+418
-503
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php-versions: ['7.1', '7.2', '7.3', '7.4']
10+
php-versions: ['7.2', '7.3', '7.4']
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v1

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
/auth.json
99
/codeception.yml
1010
/_workdir
11+
/*.code-workspace

composer.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/ece-tools",
33
"description": "Provides tools to build and deploy Magento 2 Enterprise Edition",
44
"type": "magento2-component",
5-
"version": "2002.1.7",
5+
"version": "2002.1.8",
66
"license": "OSL-3.0",
77
"repositories": {
88
"repo.magento.com": {
@@ -16,25 +16,25 @@
1616
"ext-json": "*",
1717
"ext-sockets": "*",
1818
"colinmollenhour/credis": "^1.6.0",
19-
"composer/composer": "^1.4||^2.0",
19+
"composer/composer": "^1.4 || ^2.0",
2020
"composer/semver": "@stable",
2121
"graylog2/gelf-php": "^1.4.2",
22-
"guzzlehttp/guzzle": "^6.2",
22+
"guzzlehttp/guzzle": "^6.3||^7.3",
2323
"illuminate/config": "^5.5",
2424
"magento/magento-cloud-components": "^1.0.8",
2525
"magento/magento-cloud-docker": "^1.0.0",
2626
"magento/magento-cloud-patches": "^1.0.11",
2727
"magento/quality-patches": "^1.1.0",
28-
"monolog/monolog": "^1.16",
29-
"nesbot/carbon": "^1.0||^2.0",
28+
"monolog/monolog": "^1.25 || ^2.3",
29+
"nesbot/carbon": "^1.0 || ^2.0",
3030
"psr/container": "^1.0",
3131
"psr/log": "^1.0",
32-
"symfony/config": "^4.4",
33-
"symfony/console": "^2.8||^4.0",
34-
"symfony/dependency-injection": "^3.3||^4.3",
35-
"symfony/process": "^2.1||^4.1",
36-
"symfony/serializer": "^2.8||^3.3||^4.0",
37-
"symfony/yaml": "^3.3||^4.0"
32+
"symfony/config": "^4.4 || ^5.1",
33+
"symfony/console": "^2.8 || ^4.0 || ^5.1",
34+
"symfony/dependency-injection": "^3.3 || ^4.3 || ^5.1",
35+
"symfony/process": "^2.1 || ^4.1 || ^5.1",
36+
"symfony/serializer": "^2.8 || ^3.3 || ^4.0",
37+
"symfony/yaml": "^3.3 || ^4.0 || ^5.1"
3838
},
3939
"require-dev": {
4040
"codeception/codeception": "^2.5.3",

src/App/Logger/Formatter/JsonErrorFormatter.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class JsonErrorFormatter extends JsonFormatter
3030
/**
3131
* @param ErrorInfo $errorInfo
3232
* @param ReaderInterface $reader
33-
* @param int $batchMode
33+
* @param 1|2 $batchMode
3434
* @param bool $appendNewline
3535
*/
3636
public function __construct(
@@ -50,22 +50,22 @@ public function __construct(
5050
*
5151
* {@inheritDoc}
5252
*/
53-
public function format(array $record)
53+
public function format(array $record): string
5454
{
5555
try {
5656
if (!isset($record['context']['errorCode'])) {
57-
return false;
57+
return '';
5858
}
5959

6060
$loggedErrors = $this->reader->read();
6161

6262
if (isset($loggedErrors[$record['context']['errorCode']])) {
63-
return false;
63+
return '';
6464
}
6565

6666
return parent::format($this->formatLog($record));
67-
} catch (\Exception $e) {
68-
return false;
67+
} catch (\Exception $exception) {
68+
return '';
6969
}
7070
}
7171

@@ -98,6 +98,7 @@ private function formatLog(array $record): array
9898
}
9999

100100
ksort($errorInfo);
101+
101102
return $errorInfo;
102103
}
103104
}

src/App/Logger/Formatter/LineFormatter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LineFormatter extends \Monolog\Formatter\LineFormatter
2020
/**
2121
* @inheritDoc
2222
*/
23-
public function format(array $record)
23+
public function format(array $record): string
2424
{
2525
$errorLevels = [
2626
Logger::getLevelName(Logger::WARNING),

src/App/Logger/Gelf/Handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Handler extends GelfHandler
2121
* @param array $record
2222
* @codeCoverageIgnore
2323
*/
24-
protected function write(array $record)
24+
protected function write(array $record): void
2525
{
2626
try {
2727
parent::write($record);

src/App/Logger/Gelf/HandlerFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function __construct(TransportFactory $transportFactory)
3333
* Creates instance of Gelf handler.
3434
*
3535
* @param Repository $configuration
36-
* @param int $minLevel
36+
* @param mixed $minLevel
3737
* @return Handler
3838
* @throws LoggerException
3939
*/
40-
public function create(Repository $configuration, int $minLevel): Handler
40+
public function create(Repository $configuration, $minLevel): Handler
4141
{
4242
$this->increaseSocketTimeout();
4343

src/App/Logger/Gelf/MessageFormatter.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\MagentoCloud\App\Logger\Gelf;
99

1010
use Monolog\Formatter\GelfMessageFormatter;
11+
use Gelf\Message;
1112

1213
/**
1314
* Extends functionality of GelfMessageFormatter.
@@ -33,7 +34,7 @@ public function setAdditional(array $additional)
3334
/**
3435
* @inheritdoc
3536
*/
36-
public function format(array $record)
37+
public function format(array $record): Message
3738
{
3839
$message = parent::format($record);
3940

0 commit comments

Comments
 (0)