mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
Remove unused ParserAbstract::$errors property
Leftover from before ErrorHandler was introduced.
This commit is contained in:
parent
7208b1c7ac
commit
6121001576
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user