src/TaskLogger.php
private function compareLevel(string $a, string $b): int {
        $i = array_search($a, static::$levels);
        if ($i === false) {
            throw new InvalidArgumentException("Log level is invalid: $a", 500);
        }

        return $i <=> array_search($b, static::$levels);
    }
private function compareLevel(string $a, string $b): int {
        $i = array_search($a, static::$levels);
        if ($i === false) {
            throw new InvalidArgumentException("Log level is invalid: $a", 500);
        }

        return $i <=> array_search($b, static::$levels);
    }
private function compareLevel ( string $ a , string $ b ) : int { $ i = array_search ( $ a , static :: $ levels ) ; if ( $ i === false ) { throw new InvalidArgumentException ( "Log level is invalid: $a" , 500 ) ; } return $ i <=> array_search ( $ b , static :: $ levels ) ; }
Compare two log levels.

@param string $a The first log level to compare.
@param string $b The second log level to compare.
@return int Returns -1, 0, or 1.
Compare two log levels .