Skip to content

Commit b23917a

Browse files
authored
Merge pull request #129 from boris-glumpler/psr-log
Allowed for psr/log 2.0 and 3.0 to be installed as well
2 parents 5015e7f + 9080e31 commit b23917a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
}
1818
],
1919
"require": {
20-
"php": ">=7.1",
20+
"php": ">=7.2",
2121
"ext-vips": ">=0.1.2",
22-
"psr/log": "^1.1.3"
22+
"psr/log": "^1.1.3|^2.0|^3.0"
2323
},
2424
"require-dev": {
2525
"php-parallel-lint/php-parallel-lint": "^1.2",

src/DebugLogger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class DebugLogger implements LoggerInterface
6969
*
7070
* @return void
7171
*/
72-
public function log($level, $message, array $context = [])
72+
public function log($level, $message, array $context = []): void
7373
{
7474
// `Vips\Image` to string convert
7575
array_walk_recursive($context, function (&$value) {

tests/LoggerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testSetLoggerCall()
3333
*
3434
* @return void
3535
*/
36-
public function log($level, $message, array $context = array())
36+
public function log($level, $message, array $context = array()): void
3737
{
3838
// Do logging logic here.
3939
}

0 commit comments

Comments
 (0)