Introduce Rector, adding parameter, return and property types throughout#135
Introduce Rector, adding parameter, return and property types throughout#135gsteel merged 16 commits intolaminas:5.0.xfrom
Conversation
…ate Rector for automated refactoring Signed-off-by: mmalac <mmalac@sygic.com>
…t listener setup, and update Rector/psalm configurations Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
4dd6682 to
8e25727
Compare
Signed-off-by: mmalac <mmalac@sygic.com>
src/NamingStrategy/UnderscoreNamingStrategy/CamelCaseToUnderscoreFilter.php
Show resolved
Hide resolved
…` across strategies and tests Signed-off-by: mmalac <mmalac@sygic.com>
78436c2 to
d8f2fc2
Compare
…ation Signed-off-by: mmalac <mmalac@sygic.com>
…ine entries Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
4fb88f3 to
d3def69
Compare
gsteel
left a comment
There was a problem hiding this comment.
Overall, please drop some of the introduced rector rules, specifically ones that create big diffs on tests that are more style than substance.
There are tangible benefits to the rules, so I'm not against introducing them in a separate patch, but for now, this patch is getting difficult to review.
This reverts commit 307b765. # Conflicts: # rector.php Signed-off-by: mmalac <mmalac@sygic.com>
9abbc7c to
4af6e51
Compare
Signed-off-by: mmalac <mmalac@sygic.com>
Thank you for the feedback. I agree with your points. I've reverted the commit that applied phpunit code quality rector rules. It’ll be easy to introduce those rules incrementally in separate PRs later on. |
|
Asking @samsonasik for a second pair of eyes due to the size of this PR |
Description
This PR introduces strict typing enforcement using Rector.
readonlyproperties where applicable.psalm-baseline.xmlto remove ignored issues that are now resolved through typing improvements.