beyondcode/laravel-er-diagram-generator

Getting PhpParser\Error : Syntax error, unexpected ',' on line 153 while running php artisan generate:erd

Closed this issue · 0 comments

Hi,
I am trying to run php artisan generate:erd for my project and getting the below error.

PhpParser\Error : Syntax error, unexpected ',' on line 153

at /var/www/app/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:315
311| /* error */
312| switch ($this->errorState) {
313| case 0:
314| $msg = $this->getErrorMessage($symbol, $state);

315| $this->emitError(new Error($msg, $startAttributes + $endAttributes));
316| // Break missing intentionally
317| case 1:
318| case 2:
319| $this->errorState = 3;

Exception trace:

1 PhpParser\ParserAbstract::doParse()
/var/www/app/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:158

2 PhpParser\ParserAbstract::parse("<?php namespace App\Http\Controllers;

Please let me know why am I getting this error?