ошибка [Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got '@' at position ...

Текст ошибки

[Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got '@' at position 344 in method "..." in "..." (which is being imported from ".../config/routes/annotations.yaml"). Make sure annotations are installed and enabled.

Решение

Данная ошибка говорит нам о том, что нам надо исправить синтаксис аннотации метода. Это может быть незакрытая скобка, кавычки или, как в моём случае, пропущенная запятая