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

Breadcrumb

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

function Error::getStartLine

Gets the line the error starts in.

@phpstan-return -1|positive-int

Return value

int Error start line

2 calls to Error::getStartLine()
Error::getMessageWithColumnInfo in vendor/nikic/php-parser/lib/PhpParser/Error.php
Formats message including line and column information.
Error::updateMessage in vendor/nikic/php-parser/lib/PhpParser/Error.php
Updates the exception message after a change to rawMessage or rawLine.

File

vendor/nikic/php-parser/lib/PhpParser/Error.php, line 37

Class

Error

Namespace

PhpParser

Code

public function getStartLine() : int {
    return $this->attributes['startLine'] ?? -1;
}

API Navigation

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