Skip to content

#[ReturnTypeWillChange] does not report an error when used on non-built ins and also causes MethodSignatureMismatch to not report on built-ins #11688

@kkmuffme

Description

@kkmuffme

psalm.dev/r/281be02fc0

#[ReturnTypeWillChange] only works on built-ins, should report an error when used on non-built ins

Also psalm does not report an error when #[ReturnTypeWillChange] is used on non-built ins and no return type is specified - this must report an error, since it will be a fatal error when the code is actually run

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions