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
PSR-5 @inheritDoc support #2619
Conversation
7fcd286
to
048fb2d
Compare
👍 for the idea, please fix the tests :) |
maybe it would be better to have a fixer for the casing of PHPDoc annotations and one fixer (this one) to deal with inline tags? |
It would be better, but I think that would still require an option in |
After the split up you would only need the configuration option here to (not) always make the inheritdoc inline. Like to hear more opinions! |
What about:
[
'fix_annotation' => boolean,
'fix_inline' => boolean,
'ignore_casing' => boolean,
'replacements' => [ 'inheritdocS' => 'inheritdoc', ...]
]
- @{{ tag description? }}}}}}
+ {@tag description?}
- {{ @tag description? }}}}}}
+ {@tag description?}
That way, you could achieve initial goal in very generic way: have |
sounds good to me 👍 |
Sounds like a good idea. Could you elaborate what the options would do exactly? |
|
ping @julienfalque |
048fb2d
to
5673c8d
Compare
PR reworked from scratch. |
236ba28
to
ea7cf89
Compare
This PR is touching 25 files, including already existing rules and few generic files. For that, it's hard to focus on end-change we want to achieve here. Having all changes in one commit is not helping as well. |
e2e5b61
to
78406b5
Compare
@julienfalque can you split us the PR? I think a new fixer like the |
I extracted support for multiple proxied fixers in |
extracted PR got merged |
78406b5
to
91c8045
Compare
Rebased. |
I like the idea of @SpacePossum to split this PR down to ease with review and overall process. |
Maybe, but I'd like to address #2619 (comment) first. |
afb666e
to
cf19fe9
Compare
This PR should be ready for a new review iteration. Not sure there is more that can be extracted into a separate PR though. |
cf19fe9
to
6b6981c
Compare
6b6981c
to
c9b87f1
Compare
c9b87f1
to
9d79d9e
Compare
What's the status of this PR? |
This PR still needs some review. It's not a priority to me anymore as I tend to remove |
16c9f64
to
4fe52e4
Compare
4fe52e4
to
58e7132
Compare
58e7132
to
9717f53
Compare
9717f53
to
e5bf724
Compare
e5bf724
to
715ec07
Compare
Thank you @julienfalque. |
This PR adds support for PSR-5 explicit inheritance tag: the tag can be a regular tag instead of an inline one, and uses a capital "D".