Skip to content

Using "new static" should not trigger UnsafeInstantiation in final classes #4019

@AegirLeet

Description

@AegirLeet

https://psalm.dev/r/722b67a5a0

As there can't be any child classes, the constructor's signature is known in this case. UnsafeInstantiation shouldn't apply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions