-
Notifications
You must be signed in to change notification settings - Fork 98
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
OneToMany type error #198
Comments
This is a known problem of nikic/php-parser, it doesn't see the doc comment between the attributes and the node: nikic/PHP-Parser#762 Try to switch them around to see if it helps: /**
* @var Collection<int, LabelVat>&iterable<LabelVat>
*/
#[ORM\ManyToMany(targetEntity: LabelVat::class)]
#[ORM\JoinTable(name: 'accounting_label_has_vat')]
private Collection $vatRates; |
Also, the type |
Hi,
Thank you for your quick answer, your solution is working like a charm ! 😊
Regards
|
Awesome! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello ,
I have the following error in my phpstan report (level 8), I'm using php 8 with doctrine annotations. The following code is working fine, but phpstan raises me an error.
How can I fix it ?
Here's my configuration:
The entity mapping
The error
The text was updated successfully, but these errors were encountered: