contributte / apitte

:wrench: An opinionated and enjoyable API framework based on Nette Framework. Supporting content negotiation, debugging, middlewares, attributes, annotations and loving openapi/swagger.
https://contributte.org/packages/contributte/apitte/
MIT License
61 stars 36 forks source link

Strict code #81

Closed mabar closed 5 years ago

mabar commented 5 years ago

Resolved most of phpstan real issues, fixed some potential bugs, droped alternative (undocumented) syntax for annotations and simplified annotations code.

Syntax @Path(path="/foo") is no longer valid. Annotation value is redundant, so @Path("/foo") should be enough. Also @Path(value="/foo") remains supported but it's doctrine/annotations built-in behavior, which cannot be easily changed.