public static function compare($charA, $charB): int
    {
        self::handleIncomingChar($charA, $charB);

        return (string) $charA <=> (string) $charB;
    }
public static function compare($charA, $charB): int
    {
        self::handleIncomingChar($charA, $charB);

        return (string) $charA <=> (string) $charB;
    }
public static function compare ( $ charA , $ charB ) : int { self :: handleIncomingChar ( $ charA , $ charB ) ; return ( string ) $ charA <=> ( string ) $ charB ; }
Compares specified characters numerically

@param static|string $charA
@param static|string $charB
@return int
@throws InvalidArgumentException
@throws TypeError
Compares specified characters numerically