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

Allow to intersect type alias with non-type-aliases #9638

Merged
merged 8 commits into from
Apr 16, 2023

Commits on Apr 11, 2023

  1. feature: introduce CallableTrait#getParamString and `CallableTrait#…

    …getReturnTypeString`
    
    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    93c71fe View commit details
    Browse the repository at this point in the history
  2. qa: introduce failing test for type-aliased intersection string

    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    6ea4b56 View commit details
    Browse the repository at this point in the history
  3. feature: allow aliased types within intersection strings

    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    e72af4e View commit details
    Browse the repository at this point in the history
  4. feature: add param and return type string to TCallableObject#getKey

    … in case the callable is known
    
    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    094df27 View commit details
    Browse the repository at this point in the history
  5. refactor: resolve TTypeAlias in intersections

    This also merges `TKeyedArray` into a one single keyed array. Therefore, this is not limited to aliases anymore.
    
    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    1071257 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. bugfix: ensure object and arrays are not intersectable

    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    c3f9199 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. qa: mark TTypeAlias#extra_types and `TTypeAlias#setIntersectionType…

    …s` as deprecated
    
    Due to the way how this patch modifies the type alias handling, intersection types of aliases are directly expanded and thus, the referencing types are being used rather than intersecting aliases.
    
    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    07fcf53 View commit details
    Browse the repository at this point in the history
  2. refactor: intersect keyed arrays the same way as in early return

    Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
    boesing committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    26e201d View commit details
    Browse the repository at this point in the history