@@ -20,7 +20,7 @@ trait LoggerTrait
2020 *
2121 * @return void
2222 */
23- public function emergency (string |\Stringable $ message , array $ context = [])
23+ public function emergency (string |\Stringable $ message , array $ context = []): void
2424 {
2525 $ this ->log (LogLevel::EMERGENCY , $ message , $ context );
2626 }
@@ -36,7 +36,7 @@ public function emergency(string|\Stringable $message, array $context = [])
3636 *
3737 * @return void
3838 */
39- public function alert (string |\Stringable $ message , array $ context = [])
39+ public function alert (string |\Stringable $ message , array $ context = []): void
4040 {
4141 $ this ->log (LogLevel::ALERT , $ message , $ context );
4242 }
@@ -51,7 +51,7 @@ public function alert(string|\Stringable $message, array $context = [])
5151 *
5252 * @return void
5353 */
54- public function critical (string |\Stringable $ message , array $ context = [])
54+ public function critical (string |\Stringable $ message , array $ context = []): void
5555 {
5656 $ this ->log (LogLevel::CRITICAL , $ message , $ context );
5757 }
@@ -65,7 +65,7 @@ public function critical(string|\Stringable $message, array $context = [])
6565 *
6666 * @return void
6767 */
68- public function error (string |\Stringable $ message , array $ context = [])
68+ public function error (string |\Stringable $ message , array $ context = []): void
6969 {
7070 $ this ->log (LogLevel::ERROR , $ message , $ context );
7171 }
@@ -81,7 +81,7 @@ public function error(string|\Stringable $message, array $context = [])
8181 *
8282 * @return void
8383 */
84- public function warning (string |\Stringable $ message , array $ context = [])
84+ public function warning (string |\Stringable $ message , array $ context = []): void
8585 {
8686 $ this ->log (LogLevel::WARNING , $ message , $ context );
8787 }
@@ -94,7 +94,7 @@ public function warning(string|\Stringable $message, array $context = [])
9494 *
9595 * @return void
9696 */
97- public function notice (string |\Stringable $ message , array $ context = [])
97+ public function notice (string |\Stringable $ message , array $ context = []): void
9898 {
9999 $ this ->log (LogLevel::NOTICE , $ message , $ context );
100100 }
@@ -109,7 +109,7 @@ public function notice(string|\Stringable $message, array $context = [])
109109 *
110110 * @return void
111111 */
112- public function info (string |\Stringable $ message , array $ context = [])
112+ public function info (string |\Stringable $ message , array $ context = []): void
113113 {
114114 $ this ->log (LogLevel::INFO , $ message , $ context );
115115 }
@@ -122,7 +122,7 @@ public function info(string|\Stringable $message, array $context = [])
122122 *
123123 * @return void
124124 */
125- public function debug (string |\Stringable $ message , array $ context = [])
125+ public function debug (string |\Stringable $ message , array $ context = []): void
126126 {
127127 $ this ->log (LogLevel::DEBUG , $ message , $ context );
128128 }
@@ -138,5 +138,5 @@ public function debug(string|\Stringable $message, array $context = [])
138138 *
139139 * @throws \Psr\Log\InvalidArgumentException
140140 */
141- abstract public function log ($ level , string |\Stringable $ message , array $ context = []);
141+ abstract public function log ($ level , string |\Stringable $ message , array $ context = []): void ;
142142}
0 commit comments