Skip to content
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

DX: Make TypeExpression API more explicit about composite types #8214

Merged

Conversation

Wirone
Copy link
Member

@Wirone Wirone commented Sep 25, 2024

Method isUnionType() was misleading, because it was returning true also for intersection types. Since TypeExpression is marked as @internal, it's safe to refactor it and change the API.

@Wirone Wirone self-assigned this Sep 25, 2024
@Wirone Wirone force-pushed the codito/improve-type-expression-api branch from ae0ee40 to f542ff7 Compare September 25, 2024 21:12
@Wirone Wirone requested a review from kubawerlos September 25, 2024 21:12
@coveralls
Copy link

coveralls commented Sep 25, 2024

Coverage Status

coverage: 95.128%. remained the same
when pulling 979ef4e on Wirone:codito/improve-type-expression-api
into 684cfa8 on PHP-CS-Fixer:master.

@Wirone Wirone force-pushed the codito/improve-type-expression-api branch from f542ff7 to 979ef4e Compare September 26, 2024 14:23
@Wirone Wirone enabled auto-merge (squash) September 26, 2024 14:24
@Wirone Wirone merged commit 4ab3b39 into PHP-CS-Fixer:master Sep 26, 2024
26 checks passed
@Wirone Wirone deleted the codito/improve-type-expression-api branch September 26, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants