Skip to content

Commit 3e02a4d

Browse files
committed
AC-12022::Upgrade monolog/monolog system dependency to the latest major version
1 parent 3fa2c3b commit 3e02a4d

File tree

5 files changed

+9
-21
lines changed

5 files changed

+9
-21
lines changed

app/code/Magento/Developer/Test/Unit/Model/Logger/Handler/DebugTest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ class DebugTest extends TestCase
6161

6262
/**
6363
* @inheritdoc
64-
*
65-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
6664
*/
6765
protected function setUp(): void
6866
{
@@ -96,10 +94,7 @@ protected function setUp(): void
9694
new \DateTimeImmutable(),
9795
'testChannel',
9896
Level::Debug,
99-
'testMessage',
100-
$context = [],
101-
$extra = [],
102-
$formatted = false
97+
'testMessage'
10398
);
10499
}
105100

@@ -178,10 +173,7 @@ public function testHandleDisabledByLevel()
178173
new \DateTimeImmutable(),
179174
'testChannel',
180175
Level::Error,
181-
'testMessage',
182-
$context = [],
183-
$extra = [],
184-
$formatted = false
176+
'testMessage'
185177
)
186178
));
187179
}

dev/tests/integration/framework/Magento/TestFramework/ErrorLog/Logger.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,12 @@ public function getMessages(): array
7373
* @param DateTimeImmutable|null $datetime Optional log date to log into the past or future
7474
* @return bool Whether the record has been processed
7575
*/
76-
public function addRecord(int|Level $level, string $message, array $context = [], DateTimeImmutable|null $datetime = null)
77-
: bool
78-
{
76+
public function addRecord(
77+
int|Level $level,
78+
string $message,
79+
array $context = [],
80+
DateTimeImmutable|null $datetime = null
81+
): bool {
7982
if ($level <= $this->minimumErrorLevel) {
8083
$this->messages[] = [
8184
'level' => $this->getLevelName($level),

dev/tests/integration/tmp/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

dev/tests/unit/tmp/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/internal/Magento/Framework/Logger/Test/Unit/Handler/SystemTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ private function getRecord(
9393
'test',
9494
$level,
9595
$message,
96-
$exception,
97-
[],
98-
[],
99-
$message
96+
$exception
10097
);
10198
}
10299
}

0 commit comments

Comments
 (0)