We have hosted the application doctrine extensions for phpstan in order to run this application in our online workstations with Wine or directly.
Quick description about doctrine extensions for phpstan:
DQL validation for parse errors, unknown entity classes and unknown persistent fields. QueryBuilder validation is also supported. Recognizes magic findBy*, findOneBy* and countBy* methods on EntityRepository. Validates entity fields in repository findBy, findBy, findOneBy, findOneBy, count and countBy method calls. Interprets EntityRepository MyEntity correctly in phpDocs for further type inference of methods called on the repository. Provides correct return for Doctrine\ORM\EntityManager: : getRepository(). Provides correct return type for Doctrine\ORM\EntityManager: : find, getReference and getPartialReference when Foo: : class entity class name is provided as the first argument. Queries are analyzed statically and do not require a running database server. This makes use of the Doctrine DQL parser and entities metadata.Features:
- Query type inference
- DQL validation for parse errors
- Validates entity fields
- To use this extension, require it in Composer
- You can opt in for more advanced analysis by providing the object manager from your own application
- This extension can infer the result type of DQL queries
Programming Language: PHP.
Categories:
©2024. Winfy. All Rights Reserved.
By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.