private static function handleIncomingChar(...$chars): void
    {
        foreach ($chars as $char) {
            Assert::typeOf(['string', __CLASS__], $char);

            if (mb_strlen((string) $char) !== 1) {
                throw new InvalidArgumentException('Only one character can be represented!');
            }
        }
    }
private static function handleIncomingChar(...$chars): void
    {
        foreach ($chars as $char) {
            Assert::typeOf(['string', __CLASS__], $char);

            if (mb_strlen((string) $char) !== 1) {
                throw new InvalidArgumentException('Only one character can be represented!');
            }
        }
    }
private static function handleIncomingChar ( ... $ chars ) : void { foreach ( $ chars as $ char ) { Assert :: typeOf ( [ 'string' , __CLASS__ ] , $ char ) ; if ( mb_strlen ( ( string ) $ char ) !== 1 ) { throw new InvalidArgumentException ( 'Only one character can be represented!' ) ; } } }
Validates given character and throws an exception if required

@param mixed[] $chars
@return void
@throws InvalidArgumentException
@throws TypeError
Validates given character and throws an exception if required