Skip to content

Commit 8f1ed1c

Browse files
Arnau Gonzálezfabpot
authored andcommitted
Hackday deprecated 12621
1 parent 1a8814c commit 8f1ed1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Log/NullLogger.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class NullLogger extends PsrNullLogger implements LoggerInterface
2828
*/
2929
public function emerg($message, array $context = array())
3030
{
31+
trigger_error('The emerg() method of the NullLogger was removed. You should use the new method emergency() instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
3132
}
3233

3334
/**
@@ -36,6 +37,7 @@ public function emerg($message, array $context = array())
3637
*/
3738
public function crit($message, array $context = array())
3839
{
40+
trigger_error('The crit() method of the NullLogger was removed. You should use the new method critical() instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
3941
}
4042

4143
/**
@@ -44,6 +46,7 @@ public function crit($message, array $context = array())
4446
*/
4547
public function err($message, array $context = array())
4648
{
49+
trigger_error('The err() method of the NullLogger was removed. You should use the new method error() instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
4750
}
4851

4952
/**
@@ -52,5 +55,6 @@ public function err($message, array $context = array())
5255
*/
5356
public function warn($message, array $context = array())
5457
{
58+
trigger_error('The warn() method of the NullLogger was removed. You should use the new method warning() instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
5559
}
5660
}

0 commit comments

Comments
 (0)