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

Breadcrumb

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

function TokenStream::__construct

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php \PhpParser\Internal\TokenStream::__construct()

File

vendor/twig/twig/src/TokenStream.php, line 26

Class

TokenStream
Represents a token stream.

Namespace

Twig

Code

public function __construct(array $tokens, ?Source $source = null) {
    if (null === $this->source) {
        trigger_deprecation('twig/twig', '3.16', \sprintf('Not passing a "%s" object to "%s" constructor is deprecated.', Source::class, __CLASS__));
        $this->source = new Source('', '');
    }
}

API Navigation

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