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

Breadcrumb

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

function ParserAbstract::parseLNumber

Parameters

array<string, mixed> $attributes :

File

vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php, line 740

Class

ParserAbstract

Namespace

PhpParser

Code

protected function parseLNumber(string $str, array $attributes, bool $allowInvalidOctal = false) : Int_ {
    try {
        return Int_::fromString($str, $attributes, $allowInvalidOctal);
    } catch (Error $error) {
        $this->emitError($error);
        // Use dummy value
        return new Int_(0, $attributes);
    }
}

API Navigation

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