Skip to content

Add true and false as PseudoTypes #113

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

Merged
merged 14 commits into from
Sep 2, 2020

Conversation

mvriel
Copy link
Member

@mvriel mvriel commented Aug 21, 2020

In this change, I have made more allowance for identifying types as
PseudoTypes and to ensure they are identified as both their underlying
and pseudo-type.

Using instanceof, you can identify whether it is the PseudoType, a
pseudotype, but also as the underlying type.

mvriel added 7 commits August 21, 2020 12:46
In this change, I have made more allowance for identifying types as
PseudoTypes and to ensure they are identified as both their underlying
and pseudo-type.

Using instanceof, you can identify whether it is the PseudoType, a
pseudotype, but also as the underlying type.
@mvriel mvriel changed the base branch from master to 1.x August 22, 2020 09:44
@mvriel mvriel requested a review from jaapio August 22, 2020 10:10
@mvriel
Copy link
Member Author

mvriel commented Aug 25, 2020

The BC break mentioned in the build is mitigated by using class_alias in the False_ and True_ classes. The tool is apparently unable to detect that and I even added a test to check the BC

@mvriel mvriel requested a review from jaapio August 25, 2020 05:53
mvriel and others added 2 commits August 25, 2020 07:58
In order to keep BC compatiblity, I had to introduce class_alias calls
in the True_ and False_ classes. This has a side-effect, which the phpcs
fails on.
@jaapio jaapio merged commit e21c0bd into 1.x Sep 2, 2020
@jaapio jaapio deleted the add-pseudo-type-support-and-use-true-and-false branch September 2, 2020 21:29
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.

2 participants