Skip to content

[RFC]: Literal Scalar Types#22314

Open
azjezz wants to merge 1 commit into
php:masterfrom
carthage-software:rfc/literal-scalars
Open

[RFC]: Literal Scalar Types#22314
azjezz wants to merge 1 commit into
php:masterfrom
carthage-software:rfc/literal-scalars

Conversation

@azjezz

@azjezz azjezz commented Jun 15, 2026

Copy link
Copy Markdown

Signed-off-by: azjezz <azjezz@protonmail.com>
@datbunneh

Copy link
Copy Markdown

I wonder why booleans are not part of it? For example strpos() is returning int|false. Seems like an obvious candidate for addition too.

@azjezz

azjezz commented Jun 19, 2026

Copy link
Copy Markdown
Author

@datbunneh false and true literal scalars are already supported in PHP :)

@datbunneh

Copy link
Copy Markdown

@datbunneh false and true literal scalars are already supported in PHP :)

My bad. My mind is blown though. Somehow I totally missed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants