Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 732030c

Browse files
committed
Make type of 2nd argument context compliant with LoggerInterface
1 parent 461c579 commit 732030c

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

Psr/Log/AbstractLogger.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ abstract class AbstractLogger implements LoggerInterface
1414
/**
1515
* System is unusable.
1616
*
17-
* @param string $message
18-
* @param array $context
17+
* @param string $message
18+
* @param mixed[] $context
1919
*
2020
* @return void
2121
*/
@@ -30,8 +30,8 @@ public function emergency($message, array $context = array())
3030
* Example: Entire website down, database unavailable, etc. This should
3131
* trigger the SMS alerts and wake you up.
3232
*
33-
* @param string $message
34-
* @param array $context
33+
* @param string $message
34+
* @param mixed[] $context
3535
*
3636
* @return void
3737
*/
@@ -45,8 +45,8 @@ public function alert($message, array $context = array())
4545
*
4646
* Example: Application component unavailable, unexpected exception.
4747
*
48-
* @param string $message
49-
* @param array $context
48+
* @param string $message
49+
* @param mixed[] $context
5050
*
5151
* @return void
5252
*/
@@ -59,8 +59,8 @@ public function critical($message, array $context = array())
5959
* Runtime errors that do not require immediate action but should typically
6060
* be logged and monitored.
6161
*
62-
* @param string $message
63-
* @param array $context
62+
* @param string $message
63+
* @param mixed[] $context
6464
*
6565
* @return void
6666
*/
@@ -75,8 +75,8 @@ public function error($message, array $context = array())
7575
* Example: Use of deprecated APIs, poor use of an API, undesirable things
7676
* that are not necessarily wrong.
7777
*
78-
* @param string $message
79-
* @param array $context
78+
* @param string $message
79+
* @param mixed[] $context
8080
*
8181
* @return void
8282
*/
@@ -88,8 +88,8 @@ public function warning($message, array $context = array())
8888
/**
8989
* Normal but significant events.
9090
*
91-
* @param string $message
92-
* @param array $context
91+
* @param string $message
92+
* @param mixed[] $context
9393
*
9494
* @return void
9595
*/
@@ -103,8 +103,8 @@ public function notice($message, array $context = array())
103103
*
104104
* Example: User logs in, SQL logs.
105105
*
106-
* @param string $message
107-
* @param array $context
106+
* @param string $message
107+
* @param mixed[] $context
108108
*
109109
* @return void
110110
*/
@@ -116,8 +116,8 @@ public function info($message, array $context = array())
116116
/**
117117
* Detailed debug information.
118118
*
119-
* @param string $message
120-
* @param array $context
119+
* @param string $message
120+
* @param mixed[] $context
121121
*
122122
* @return void
123123
*/

0 commit comments

Comments
 (0)