-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic phpdoc template incorrect #620
Comments
Isn't there an "ide_helper" with some incorrectly generated stubs? |
Found the source of this issue! We are using There is phpstorm metadata file It was added for phpstorm to be able to detect dynamic return type, but looking at the file its wrong that the definition of contributte/doctrine-orm@b6e683a file was created based on PR contributte/doctrine-orm#49 |
Awesome! I thought it would be something like this. It seems the |
Overrides for getRepository are invalid – it overrides returned type from `@returns Collection<T>` to returning the entity directly `@returns T` See DEVSENSE/phptools-docs#620
Overrides for getRepository are invalid – it overrides returned type from `@returns Collection<T>` to returning the entity directly `@returns T` See DEVSENSE/phptools-docs#620
Overrides for getRepository are invalid – it overrides returned type from `@returns Collection<T>` to returning the entity directly `@returns T` See DEVSENSE/phptools-docs#620
Source code from Doctrine ORM:
Method call:
Actual results:
Expected result: no errors – expecting getRepository return value to by of type
EntityRepository<MyEntity>
instead ofMyEntity
itselfThe text was updated successfully, but these errors were encountered: