Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #263 Goal: remove the need of the deprecated dependency [herrera-io/annotations](https://github.com/kherge-abandoned/php-annotations) and the underlying [doctrine/lexer 1.x](https://packagist.org/packages/doctrine/lexer) which is bound to disappear at some point. - Remove the deprecated dependency [herrera-io/annotations](https://github.com/kherge-abandoned/php-annotations) and soon deprecated underlying dependency [doctrine/lexer 1.x](https://packagist.org/packages/doctrine/lexer) in favour of [HoaCompiler](https://hoa-project.net/En/Literature/Hack/Compiler.html) and an annotation grammar which should land in doctrine/annotations or lexer at some point. - Changes to the `Php` compactor: - Invalid annotations are no longer recognised as annotations: ```php /** * @annotation () * @namespaced\ Annotation */ ``` Will be transformed into: ```php /** * @annotation * @namespaced */ ``` - The removal of common annotations is enabled by default - The setting `annotation#ignore` no longer accepts a `string` value, only `string[]` and `null` are allowed - Upon some annotation parsing failures, the error is thrown to the user in order to identify and fix those cases instead of always silently ignore the error. - Add recommendations and warnings when relevant - Update the documentation
- Loading branch information