Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ParserFactory.php

function ParserFactory::createForHostVersion

Create a parser targeting the host PHP version, that is the PHP version we're currently running on. This parser will not use any token emulation.

File

vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php, line 39

Class

ParserFactory

Namespace

PhpParser

Code

public function createForHostVersion() : Parser {
    return $this->createForVersion(PhpVersion::getHostVersion());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal