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
feat: phpDoc to property/return/param Fixer - allow fixing union types on PHP >= 8 #6359
Merged
Wirone
merged 12 commits into
PHP-CS-Fixer:master
from
MortalFlesh:feature/fix-union-types-in-phpdocs
Nov 4, 2023
Merged
feat: phpDoc to property/return/param Fixer - allow fixing union types on PHP >= 8 #6359
Wirone
merged 12 commits into
PHP-CS-Fixer:master
from
MortalFlesh:feature/fix-union-types-in-phpdocs
Nov 4, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MortalFlesh
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
2 times, most recently
from
April 8, 2022 14:31
99a104d
to
9c1854d
Compare
keradus
reviewed
Aug 17, 2022
keradus
reviewed
Aug 17, 2022
MortalFlesh
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
from
August 19, 2022 11:56
9c1854d
to
c2f5d68
Compare
MortalFlesh
changed the title
PhpdocTo Property/Return/Param Fixer - allow fixing union types on PHP >= 8
feature: PhpdocTo Property/Return/Param Fixer - allow fixing union types on PHP >= 8
Aug 19, 2022
This comment was marked as outdated.
This comment was marked as outdated.
@MortalFlesh is it possible to rebase this PR, so we can check current pipeline result and continue the review process? |
github-actions
bot
added
status/to verify
issue needs to be confirmed or analysed to continue
and removed
status/stale
labels
Jun 5, 2023
Wirone
added
status/rebase required
PR is outdated and required synchronisation with main branch
and removed
status/to verify
issue needs to be confirmed or analysed to continue
labels
Jun 12, 2023
This comment was marked as outdated.
This comment was marked as outdated.
github-actions
bot
added
status/to verify
issue needs to be confirmed or analysed to continue
and removed
status/stale
labels
Oct 20, 2023
Wirone
removed
the
status/to verify
issue needs to be confirmed or analysed to continue
label
Oct 31, 2023
Wirone
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
from
October 31, 2023 10:34
c2f5d68
to
b430241
Compare
Wirone
changed the title
feature: PhpdocTo Property/Return/Param Fixer - allow fixing union types on PHP >= 8
feat: phpDoc to property/return/param Fixer - allow fixing union types on PHP >= 8
Oct 31, 2023
Wirone
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
from
October 31, 2023 10:35
b430241
to
9c96b1f
Compare
Wirone
removed
the
status/rebase required
PR is outdated and required synchronisation with main branch
label
Oct 31, 2023
mvorisek
reviewed
Oct 31, 2023
mvorisek
reviewed
Oct 31, 2023
mvorisek
reviewed
Oct 31, 2023
mvorisek
reviewed
Oct 31, 2023
mvorisek
reviewed
Oct 31, 2023
Wirone
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
4 times, most recently
from
November 1, 2023 22:32
5162b5c
to
dcdc5c2
Compare
kubawerlos
approved these changes
Nov 2, 2023
Wirone
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
from
November 2, 2023 22:50
bb6d318
to
d3d1675
Compare
Wirone
force-pushed
the
feature/fix-union-types-in-phpdocs
branch
from
November 4, 2023 23:23
d3d1675
to
5b522f8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
while I was doing
mixed
type PR (#6356) I noticed, thatunion-types
are not handled by the phpdocs fixers. So I decided to make it possible.It was quite harder, than I originally though (as usually.. 🤔 ) but in the end, it works good - at least I hope so :)
There are still a few points, which makes this a more like the draft more than a PR, since I needed to skip some assertions in theMaintainer's note: there was problem with comparingAssertTokensTrait
. I would fix it too, but for now, I don't understand the tokens test and I didn't have time to dig in it. I might have some time next week, but I'd appreciate some help with that.Tokens
before/after applying fix, it was fixed.Also I updated theMaintainer's note: it was removed during rebase, because the fix was already inTypeExpression
class to handlenullable
typed by?
prefix. It is a separate commit and I could send it as a separate PR if needed. Yet I'm not sure if it is needed, since it does not have an impact for anything else. (At least according to tests.)master
.And this PR contains the commit from aMaintainer's note: already merged, and this one is rebased on top of that.mixed
PR, so it needs to be rebased later to contain just theunion-types
.