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

Support standalone and nullable types for true, false, and null. #566

Merged
merged 4 commits into from Nov 29, 2022

Conversation

kschatzle
Copy link
Contributor

No description provided.

@kschatzle
Copy link
Contributor Author

Question in general. Since true isn't a builtin type until PHP8.2, the code that is being mocked shouldn't have true as a standalone type. So how do choose what to prevent via versioning and what not?

Make true type declarations version checked.
@kschatzle
Copy link
Contributor Author

Hoping I get a comment from the above. As I'm changing a lot of for #535 that may require this type of version checking.

@ciaranmcnulty
Copy link
Member

@kschatzle not sure what the question means really? You have the PHP version checks in place that look correct, to me at least

Can you rebase please?

@ciaranmcnulty
Copy link
Member

ok I fixed the conflict and fixed an issue with true handling - thanks!

@ciaranmcnulty ciaranmcnulty merged commit 996ac8c into phpspec:master Nov 29, 2022
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.

None yet

3 participants