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
Namespace
PhpParserCode
public function getStartLine() : int {
return $this->attributes['startLine'] ?? -1;
}