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

feat: Handle native intersection types #7454

Merged
merged 6 commits into from Jan 22, 2022

Commits on Jan 21, 2022

  1. feat: Handle native intersection types

    Adds native intersection type handling to psalm, removing the previous `UnexpectedValueException`.
    
    Where an intersection is found in the parse tree, the types are resolved using the existing `Type::intersectUnionTypes` function, which I assume is being used when they're encountered in the existing docblock annotations.
    
    I've added a handful of tests to cover this, but they're certainly not exhaustive. Are there any specific edge cases I should target?
    
    This change feels way too simple... so apologies if I've missed something fundamental..!
    petewalker committed Jan 21, 2022
    Copy the full SHA
    a3bdf1b View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    299eca4 View commit details
    Browse the repository at this point in the history
  3. Trigger CI

    petewalker committed Jan 21, 2022
    Copy the full SHA
    e2ebfd2 View commit details
    Browse the repository at this point in the history
  4. fix: Lint issue

    petewalker committed Jan 21, 2022
    Copy the full SHA
    41a3807 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2022

  1. fix: Tests / minor bug

    petewalker committed Jan 22, 2022
    Copy the full SHA
    057a99c View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    be6ce77 View commit details
    Browse the repository at this point in the history