未验证 提交 4abdcde5 编写于 作者: M Maxim L 提交者: GitHub

Fix missing argument in documentation (#767)

Missing argument in the getMessageWithColumnInfo call
上级 d46f261e
......@@ -36,7 +36,7 @@ if ($e->hasColumnInfo()) {
echo $e->getRawMessage() . ' from ' . $e->getStartLine() . ':' . $e->getStartColumn($code)
. ' to ' . $e->getEndLine() . ':' . $e->getEndColumn($code);
// or:
echo $e->getMessageWithColumnInfo();
echo $e->getMessageWithColumnInfo($code);
} else {
echo $e->getMessage();
}
......@@ -72,4 +72,4 @@ if (null !== $stmts) {
}
```
The `NameResolver` visitor also accepts an `ErrorHandler` as a constructor argument.
\ No newline at end of file
The `NameResolver` visitor also accepts an `ErrorHandler` as a constructor argument.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册