Skip to content

Commit 4277373

Browse files
authored
Merge pull request #58 from ingenerator/support-all-psr-log-versions
Support all versions of PSR Log
2 parents 7fdedf1 + 14d766f commit 4277373

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Unreleased
22

3+
### v2.0.0 (2023-10-27)
4+
5+
* Support psr/log ^1.1 || ^2.0 || ^3.0
6+
37
### v1.20.0 (2023-10-17)
48

59
* Add DateIntervalUtils to stringify a DateInterval, and DateIntervalFactory for shorthand creation

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ext-pdo": "~8.1.0 || ~8.2.0",
2121
"ext-sodium": "~8.1.0 || ~8.2.0",
2222
"php": "~8.1.0 || ~8.2.0",
23-
"psr/log": "^1.1"
23+
"psr/log": "^1.1 || ^2.0 || ^3.0"
2424
},
2525
"require-dev": {
2626
"johnkary/phpunit-speedtrap": "^3.3",

src/Logging/StackdriverApplicationLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function __construct(
195195
* @param string $message
196196
* @param array $context
197197
*/
198-
public function log($level, $message, array $context = [])
198+
public function log($level, $message, array $context = []): void
199199
{
200200
// These are the only `context` keys that will be used as top-level properties. Anything else is moved to a
201201
// `custom_context` key to prevent it overwriting internal metadata and low-level log entry properties e.g.

0 commit comments

Comments
 (0)