Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit 224e1df

Browse files
committed
feature #29 Allow installation of monolog 2 (tristanbes, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Allow installation of monolog 2 Commits ------- 69a189f Bumped Symfony requirement to 3.4 a1a5871 make sure to keep signature compatibility with base class 2197b87 Allow installation of monolog 2
2 parents d88efb3 + 69a189f commit 224e1df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
}
1616
],
1717
"require": {
18-
"php" : ">=5.3.0",
19-
"monolog/monolog" : "~1.6",
20-
"symfony/yaml" : "^2.8|^3.4|^4.0|^5.0"
18+
"php" : ">=7.1",
19+
"monolog/monolog" : "~1.6|~2.0",
20+
"symfony/yaml" : "^3.4|^4.0|^5.0"
2121
},
2222
"autoload": {
2323
"psr-4": { "EasyCorp\\EasyLog\\": "src" }

src/EasyLogHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public function __construct($stream)
1919
/**
2020
* @param array $record
2121
*/
22-
public function handle(array $record)
22+
public function handle(array $record): bool
2323
{
2424
throw new \RuntimeException('The method "handle()" should never be called (call "handleBatch()" instead). This is probably caused by a wrong "monolog" configuration. Please read EasyLogHandler README instructions to learn how to configure and use it.');
2525
}
2626

2727
/**
2828
* @param array $records
2929
*/
30-
public function handleBatch(array $records)
30+
public function handleBatch(array $records): void
3131
{
3232
// if the log records were filtered (by channel, level, etc.) the array
3333
// no longer contains consecutive numeric keys. Make them consecutive again

0 commit comments

Comments
 (0)