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

Breadcrumb

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

function JsonParser::parseError

Parameters

string $str:

array{text: string, token: string|int, line: int, loc: array{first_line: int, first_column: int, last_line: int, last_column: int}, expected: string[]}|null $hash:

Return value

never

2 calls to JsonParser::parseError()
JsonParser::failOnBOM in vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php
JsonParser::parse in vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php
@phpstan-param int-mask-of<self::*> $flags

File

vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php, line 410

Class

JsonParser
Parser class

Namespace

Seld\JsonLint

Code

protected function parseError($str, $hash = null) {
    throw new ParsingException($str, $hash ?: array());
}

API Navigation

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