Skip to content

[Proposal]: LiteralType #1729

@norberttech

Description

@norberttech

Describe the Proposal

Add literal type that would check if passed value is exactly the same type and value.

API Adjustments

type_literal(int|float|bool|string $value) : Type

Are you intenting to also work on proposed change?

None

Are you interested in sponsoring this change?

None

Integration & Dependencies

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions