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

Fix typehint resolution - stop prefixing unions with namespace #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GuySartorelli
Copy link

Fixes #76

The typeToArray() implementation is based heavily on typeToString(), but uses the [$type, false] array style that resolveHint() is expecting.

I'm not sure how to go about writing a test for this - I didn't have enough time to get familiar with the way your tests are written. Can you please give me some guidance? It doesn't look like the existing tests include namespaces in a way that would surface this bug and I'm not sure how to add that.

Verified

This commit was signed with the committer’s verified signature.
GuySartorelli Guy Sartorelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Typehints sometimes incorrectly prepend the current namespace
1 participant