Skip to content

Parameters with default null value are getting the nullability removed from the type #9

@devnix

Description

@devnix

This is one example:

Image

It probably looks like it doesn't detect cases where null is being sent to that parameter so it infers that only receives strings, but the default argument should be counted. This happens a lot in my codebase.

In cases not previously typed, it works under the same logic: the default parameter should be taken into account

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions