Skip to content

DeclareAsNullable fixer should trigger when assigning "maybe null" values to non-null variable #30110

@jcouv

Description

@jcouv

Currently (#26630), DeclareAsNullable only triggers when assigning the null literal.
Once we have a public API to expose the null-state of an expression, we could trigger on assignment of "maybe null" values.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions