-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Use attributes in tests #2596
Use attributes in tests #2596
Conversation
2a9eb8a
to
3cd19d1
Compare
e5d2ddd
to
36f56a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tools/sandbox/Documents
are still using annotation. Do you plan to update them also?
I've used rector with some manual adjustments.
Do you remember what had to be fixed manually? Is there anything that can be improved in rector?
b2c84e9
to
37b6a10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
* | ||
* @var string|null | ||
*/ | ||
/** @var string|null */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for later, we can use typed properties.
Thanks, I didn't notice about those files.
I don't remember 😞 after rectorphp/rector-doctrine#239 I think it was not so much work |
37b6a10
to
a0c806f
Compare
This PR changes most of the annotations for attributes since our minimum PHP version is 8.1, the tests changed are the ones relying on
BaseTestCase::createMetadataDriverImpl()
This builds on top of #2502 to make sure it works fine.
I've used rector with some manual adjustments.