public static function isTypeName(string $typeName): bool
	{
		$matches = [];
		$result = preg_match('~^\\\\?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)*$~', $typeName, $matches);
		if ($result === false) {
			// @codeCoverageIgnoreStart
			throw new Exception('PREG error ' . preg_last_error());

			// @codeCoverageIgnoreEnd
		}

		return $result !== 0 && $matches !== null;
	}
public static function isTypeName(string $typeName): bool
	{
		$matches = [];
		$result = preg_match('~^\\\\?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)*$~', $typeName, $matches);
		if ($result === false) {
			// @codeCoverageIgnoreStart
			throw new Exception('PREG error ' . preg_last_error());

			// @codeCoverageIgnoreEnd
		}

		return $result !== 0 && $matches !== null;
	}
public static function isTypeName ( string $ typeName ) : bool { $ matches = [ ] ; $ result = preg_match ( '~^\\\\?([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)(\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)*$~' , $ typeName , $ matches ) ; if ( $ result === false ) { // @codeCoverageIgnoreStart throw new Exception ( 'PREG error ' . preg_last_error ( ) ) ; // @codeCoverageIgnoreEnd } return $ result !== 0 && $ matches !== null ; }
Validates type name according to the allowed characters in type names + namespaces

@link http://php.net/manual/en/language.oop5.basic.php
@param string $typeName
@return bool
Validates type name according to the allowed characters in type names + namespaces