Skip to content

Commit 1eea926

Browse files
authored
Merge pull request #594 from deguif/psr-log-3
Support psr/log 3.0
2 parents 280f0e9 + 1577b0b commit 1eea926

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Logger/OutputLogger.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(OutputInterface $output)
5353
/**
5454
* @param int $level
5555
*/
56-
public function setLevel($level)
56+
public function setLevel($level): void
5757
{
5858
$this->level = $level;
5959
}
@@ -64,7 +64,7 @@ public function setLevel($level)
6464
*
6565
* @return void
6666
*/
67-
public function emergency($message, array $context = [])
67+
public function emergency($message, array $context = []): void
6868
{
6969
$this->emerg($message, $context);
7070
}
@@ -75,7 +75,7 @@ public function emergency($message, array $context = [])
7575
*
7676
* @return void
7777
*/
78-
public function emerg($message, array $context = [])
78+
public function emerg($message, array $context = []): void
7979
{
8080
if (0 === ($this->level & self::EMERG)) {
8181
return;
@@ -90,7 +90,7 @@ public function emerg($message, array $context = [])
9090
*
9191
* @return void
9292
*/
93-
public function alert($message, array $context = [])
93+
public function alert($message, array $context = []): void
9494
{
9595
if (0 === ($this->level & self::ALERT)) {
9696
return;
@@ -105,7 +105,7 @@ public function alert($message, array $context = [])
105105
*
106106
* @return void
107107
*/
108-
public function critical($message, array $context = [])
108+
public function critical($message, array $context = []): void
109109
{
110110
$this->crit($message, $context);
111111
}
@@ -116,7 +116,7 @@ public function critical($message, array $context = [])
116116
*
117117
* @return void
118118
*/
119-
public function crit($message, array $context = [])
119+
public function crit($message, array $context = []): void
120120
{
121121
if (0 === ($this->level & self::CRIT)) {
122122
return;
@@ -131,7 +131,7 @@ public function crit($message, array $context = [])
131131
*
132132
* @return void
133133
*/
134-
public function error($message, array $context = [])
134+
public function error($message, array $context = []): void
135135
{
136136
$this->err($message, $context);
137137
}
@@ -142,7 +142,7 @@ public function error($message, array $context = [])
142142
*
143143
* @return void
144144
*/
145-
public function err($message, array $context = [])
145+
public function err($message, array $context = []): void
146146
{
147147
if (0 === ($this->level & self::ERR)) {
148148
return;
@@ -157,7 +157,7 @@ public function err($message, array $context = [])
157157
*
158158
* @return void
159159
*/
160-
public function warning($message, array $context = [])
160+
public function warning($message, array $context = []): void
161161
{
162162
$this->warn($message, $context);
163163
}
@@ -168,7 +168,7 @@ public function warning($message, array $context = [])
168168
*
169169
* @return void
170170
*/
171-
public function warn($message, array $context = [])
171+
public function warn($message, array $context = []): void
172172
{
173173
if (0 === ($this->level & self::WARN)) {
174174
return;
@@ -183,7 +183,7 @@ public function warn($message, array $context = [])
183183
*
184184
* @return void
185185
*/
186-
public function notice($message, array $context = [])
186+
public function notice($message, array $context = []): void
187187
{
188188
if (0 === ($this->level & self::NOTICE)) {
189189
return;
@@ -198,7 +198,7 @@ public function notice($message, array $context = [])
198198
*
199199
* @return void
200200
*/
201-
public function info($message, array $context = [])
201+
public function info($message, array $context = []): void
202202
{
203203
if (0 === ($this->level & self::INFO)) {
204204
return;
@@ -213,7 +213,7 @@ public function info($message, array $context = [])
213213
*
214214
* @return void
215215
*/
216-
public function debug($message, array $context = [])
216+
public function debug($message, array $context = []): void
217217
{
218218
if (0 === ($this->level & self::DEBUG)) {
219219
return;
@@ -229,7 +229,7 @@ public function debug($message, array $context = [])
229229
*
230230
* @return void
231231
*/
232-
public function log($level, $message, array $context = [])
232+
public function log($level, $message, array $context = []): void
233233
{
234234
if (0 === ($this->level & $level)) {
235235
return;

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"symfony/translation-contracts": "^2.0 || ^3.0",
3232
"symfony/validator": "^5.4 || ^6.4",
3333
"twig/twig": "^3.15",
34-
"psr/log": "^1.0 || ^2.0"
34+
"psr/log": "^1.0 || ^2.0 || ^3.0"
3535
},
3636
"require-dev": {
3737
"doctrine/annotations": "^1.11",

0 commit comments

Comments
 (0)