Remove unused ParserAbstract::$errors property

Leftover from before ErrorHandler was introduced.
This commit is contained in:
Nikita Popov 2018-03-30 21:45:52 +02:00
parent 7208b1c7ac
commit 6121001576

View File

@ -109,8 +109,6 @@ abstract class ParserAbstract implements Parser
/** @var ErrorHandler Error handler */ /** @var ErrorHandler Error handler */
protected $errorHandler; protected $errorHandler;
/** @var Error[] Errors collected during last parse */
protected $errors;
/** @var int Error state, used to avoid error floods */ /** @var int Error state, used to avoid error floods */
protected $errorState; protected $errorState;
@ -129,7 +127,6 @@ abstract class ParserAbstract implements Parser
*/ */
public function __construct(Lexer $lexer, array $options = []) { public function __construct(Lexer $lexer, array $options = []) {
$this->lexer = $lexer; $this->lexer = $lexer;
$this->errors = [];
if (isset($options['throwOnError'])) { if (isset($options['throwOnError'])) {
throw new \LogicException( throw new \LogicException(