psalm-plugin-symfony
psalm-plugin-symfony copied to clipboard
Prevent PropertyNotSetInConstructor
Support @reqired annotation and #[Required] attribute for properties. Prevent PropertyNotSetInConstructor when ContainerAwareTrait used.
for #141 and #140
@Punk-UnDeaD thank you for your contribution. Could you please rebase your branch or merge with up-to-date master to pass the tests?
What's the status here, you need some help or anything? CI is failing, so it can't really be expected to be merged in this state.
@ostrolucky i fixed all my issues, but tests failed on 'Class 'Symfony\Component\BrowserKit\AbstractBrowser' not found' and i don't know how to skip this
I fixed all the tests issue in https://github.com/psalm/psalm-plugin-symfony/pull/242, maybe this PR could be rebased after the merge of mine @seferov @Punk-UnDeaD ?
Just a heads up: There already is a handler for the annotation in src/Handler/RequiredSetterHandler.php
. Shouldn't that be removed in favor for this solution?
Any progress on this?