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

Handle unsupported types without failing #5

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

acoulton
Copy link
Member

We need to cope with:

  • untyped properties (which default to null)
  • Union types
  • Intersection types

We can't guess anything for the latter two, as there's no reliable way to guess which of the supported types might be appropriate. So we just need the guessers to skip over them - previously they were failing due to the ReflectionUnionType / ReflectionIntersectionType not supporting getName() / isBuiltIn().

We need to cope with:

* untyped properties (which default to null)
* Union types
* Intersection types

We can't guess anything for the latter two, as there's no reliable way
to guess which of the supported types might be appropriate. So we just
need the guessers to skip over them - previously they were failing due
to the ReflectionUnionType / ReflectionIntersectionType not supporting
getName() / isBuiltIn().
@acoulton acoulton enabled auto-merge November 27, 2024 13:18
@acoulton acoulton merged commit 237f704 into 0.1.x Nov 27, 2024
3 checks passed
@acoulton acoulton deleted the 0.1-handle-unsupported-types branch November 27, 2024 13:18
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.

1 participant