Skip to content

Commit 8e687bd

Browse files
committed
test: fix psr/log compatibility
1 parent bd8a013 commit 8e687bd

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Tests/Logger/MonologLoggerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public function testIsAnInstanceOfLoggerInterface()
3939
public function testLogCallsLogToLogServiceWithLogArray()
4040
{
4141
$log = new AuditLog();
42+
$log->setDescription('null');
43+
$log->setType('null');
44+
$log->setTypeId('null');
4245

4346
$this->symfonyLogger
4447
->expects($this->at(0))
@@ -47,8 +50,8 @@ public function testLogCallsLogToLogServiceWithLogArray()
4750
$this->equalTo('info'),
4851
$log->getDescription(),
4952
array(
50-
'typeId' => null,
51-
'type' => null,
53+
'typeId' => 'null',
54+
'type' => 'null',
5255
'eventTime' => null,
5356
'user' => null,
5457
'ip' => null,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require": {
2424
"php": ">=8.0.2",
25-
"psr/log": "^1.1|^2|^3",
25+
"psr/log": "^1|^2|^3",
2626
"symfony/framework-bundle": ">=6.0 <7.0.0",
2727
"symfony/security-bundle": ">=6.0 <7.0.0"
2828
},

0 commit comments

Comments
 (0)