-
Notifications
You must be signed in to change notification settings - Fork 103
Doctrine annotations analysis #6
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
Comments
What kinds of checks are you thinking of? Yet I'm not aware of another doctrine extension to PHPStan other than this one. Me and my team actually came up with two ideas: keep Shameless plug: our coding standard for phpcs, which plays nicely with PHPStan (as it happily picks up the |
Some samples: /**
* @var \DateTime
*
* @ORM\Column(type="date", nullable=true)
*/
private $lastInvoiceDate; Here, it should be /**
* @var Product
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Product")
* @ORM\JoinColumn(referencedColumnName="id")
*/
private $product; Here too, because |
I briefly discussed this with @ondrejmirtes and I think this should be split into two parts:
I may try to come up with something in this regard, but I'm not sure if it's not wise to wait for Annotations 2.0 which will come with better parser and PP language definition. |
Following in #31. |
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. |
Is it possible to check Doctrine Annotations or exists some extension for it?
The text was updated successfully, but these errors were encountered: