Skip to content

Commit 67271a2

Browse files
authored
Merge pull request #6566 from 3liz/backport-6565-to-release_3_10
[Backport release_3_10] Fix PHP: Logger::log signature
2 parents 1f0595a + d892506 commit 67271a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lizmap/modules/lizmap/lib/Logger/Logger.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,11 @@ public function isLevelHighEnough(string $level): bool
110110
/**
111111
* Logs with an arbitrary level.
112112
*
113-
* @param mixed $level
114-
* @param string|\Stringable $message
115-
* @param array $context
113+
* @param mixed $level
116114
*
117115
* @throws InvalidArgumentException
118116
*/
119-
public function log($level, $message, $context = array())
117+
public function log($level, string|\Stringable $message, array $context = array()): void
120118
{
121119
if (!in_array($level, self::LogLevels)) {
122120
throw new InvalidArgumentException('Invalid log level');

0 commit comments

Comments
 (0)