1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-25 02:31:25 +02:00

Support psr/log:^2.0,^3.0 (#486)

* Support psr/log:^2.0,^3.0

* Update FileStorageTest.php

Co-authored-by: Erik Niebla <ep_niebla@hotmail.com>
Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
This commit is contained in:
erikn69
2021-10-18 04:38:31 -05:00
committed by GitHub
parent 22cfd56c87
commit fb428365f2
3 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
composer.lock
/vendor
/src/DebugBar/Resources/vendor
/src/DebugBar/Resources/vendor
.phpunit.result.cache

View File

@@ -18,7 +18,7 @@
],
"require": {
"php": "^7.1|^8",
"psr/log": "^1.0 || ^2.0",
"psr/log": "^1|^2|^3",
"symfony/var-dumper": "^2.6|^3|^4|^5"
},
"require-dev": {

View File

@@ -183,7 +183,7 @@ class MessagesCollector extends AbstractLogger implements DataCollectorInterface
* @param $message
* @param array $context
*/
public function log($level, $message, array $context = array())
public function log($level, $message, array $context = array()): void
{
// For string messages, interpolate the context following PSR-3
if (is_string($message)) {