The expression return array_search($level, $mapping) could return the type false|string which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
41
}
42
43
/**
44
* @inheritDoc
45
* @suppress PhanUnusedPublicMethodParameter
46
*/
47
public function log( $level, $message, array $context = [] ) {
48
if ( $this->levelToInt( $level ) >= $this->minLevel ) {
49
printf( "%s [%s] - %s\n", date( 'd M H:i:s' ), $level, $message );