src/Tokenizer/Token.php
private static function getTokenKindsForNames(array $tokenNames)
    {
        $keywords = [];
        foreach ($tokenNames as $keywordName) {
            if (\defined($keywordName)) {
                $keyword = \constant($keywordName);
                $keywords[$keyword] = $keyword;
            }
        }

        return $keywords;
    }
private static function getTokenKindsForNames(array $tokenNames)
    {
        $keywords = [];
        foreach ($tokenNames as $keywordName) {
            if (\defined($keywordName)) {
                $keyword = \constant($keywordName);
                $keywords[$keyword] = $keyword;
            }
        }

        return $keywords;
    }
private static function getTokenKindsForNames ( array $ tokenNames ) { $ keywords = [ ] ; foreach ( $ tokenNames as $ keywordName ) { if ( \ defined ( $ keywordName ) ) { $ keyword = \ constant ( $ keywordName ) ; $ keywords [ $ keyword ] = $ keyword ; } } return $ keywords ; }
@param string[] $tokenNames

@return array<int, int>
@param string [] $tokenNames