Skip to content

Commit 6bf7bc5

Browse files
authored
bring the Logger deprecated method forward from 2.3 (#2225)
1 parent 3f4bc65 commit 6bf7bc5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/SimpleSAML/Logger.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,15 @@ public static function warning(string $string): void
228228
self::log(self::WARNING, $string);
229229
}
230230

231+
/**
232+
* Log a warning about deprecated code.
233+
*
234+
* @param string $string The message to log.
235+
*/
236+
public static function deprecated(string $string): void
237+
{
238+
self::log(self::WARNING, 'DEPRECATION WARNING: ' . $string);
239+
}
231240

232241
/**
233242
* We reserve the notice level for statistics, so do not use this level for other kind of log messages.

0 commit comments

Comments
 (0)